<gh_stars>0﻿namespace Sunny.UI.Demo
{
    public partial class FLogin : UILoginForm
    {
        public FLogin()
        {
            InitializeComponent();
        }

        private void FLogin_ButtonLoginClick(object sender, System.EventArgs e)
        {
            //UserName就是封装了界面里用户名输入框的值
            //Password就是封装了界面里密码输入框的值
            if (UserName == "admin" && Password == "admin")
            {
                IsLogin = true;
                Close();
            }
            else
            {
                ShowErrorTip("用户名或者密码错误。");
            }
        }
    }
}