Esempio n. 1
0
 void UserLogin_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         SendKeys.Send("{TAB}");
         Application.DoEvents();
         if (btnLogin.Focused)
         {
             ABCUserManager.Login(loginType, this.cmbDatabase.Text, txtUserName.Text, txtPassword.Text);
         }
     }
 }
Esempio n. 2
0
 void btnSaveNewPass_Click(object sender, EventArgs e)
 {
     if (this.txtNewPass.Text != this.txtNewPass2.Text)
     {
         ABCHelper.ABCMessageBox.Show("Mật khẩu mới không khớp", "Đổi mật khẩu", MessageBoxButtons.OK, MessageBoxIcon.Error);
         return;
     }
     if (ABCUserManager.ChangePassword(this.cmbDatabase.Text, txtUserName.Text, txtOldPass.Text, txtNewPass.Text))
     {
         this.panelLogin.Visible      = true;
         this.panelChangePass.Visible = false;
         this.txtOldPass.Text         = String.Empty;
         this.txtNewPass.Text         = String.Empty;
         this.txtNewPass2.Text        = String.Empty;
     }
 }
Esempio n. 3
0
 void btnLogin_Click(object sender, EventArgs e)
 {
     ABCUserManager.Login(loginType, this.cmbDatabase.Text, txtUserName.Text, txtPassword.Text);
 }