Esempio n. 1
0
        /// <summary>
        /// 点击登录
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnLogin_Click(object sender, EventArgs e)
        {
            List <Admin> adList = StudentService.GetAllAdmin();

            if (string.IsNullOrEmpty(this.txtId.Text.Trim()))
            {
                return;
            }
            if (string.IsNullOrEmpty(this.txtPwd.Text.Trim()))
            {
                return;
            }
            foreach (Admin item in adList)
            {
                if (item.loginId == this.txtId.Text.Trim())
                {
                    if (item.loginPwd == this.txtPwd.Text.Trim())
                    {
                        frmStudentInfo fr = new frmStudentInfo();
                        this.Hide();
                        fr.ShowDialog();
                        this.Dispose();
                    }
                }
            }
        }
Esempio n. 2
0
 public frmAddInfo(frmStudentInfo fr)
 {
     this.frm = fr;
     InitializeComponent();
 }