25 lines
666 B
C#
Raw Normal View History

2020-06-26 16:22:14 +08:00
namespace Sunny.UI.Demo
2020-06-20 21:00:15 +08:00
{
public partial class FLogin : UILoginForm
{
public FLogin()
{
InitializeComponent();
}
private void FLogin_ButtonLoginClick(object sender, System.EventArgs e)
2020-06-20 21:00:15 +08:00
{
2021-01-19 23:00:28 +08:00
//UserName就是封装了界面里用户名输入框的值
//Password就是封装了界面里密码输入框的值
if (UserName == "admin" && Password == "admin")
{
IsLogin = true;
Close();
}
else
{
2024-05-02 23:04:38 +08:00
this.ShowErrorTip("用户名或者密码错误。");
2021-01-19 23:00:28 +08:00
}
2020-06-20 21:00:15 +08:00
}
}
}