예제 #1
0
 public void LoginBT_Click(object sender, EventArgs e)
 {
     user = UserNametb.Text.ToString();
     pass = PassTB.Text.ToString();
     if (new NhanVienBUS().LoginChecking(UserNametb.Text.ToString(), PassTB.Text.ToString()))
     {
         Workstation form = new Workstation(this);
         form.Show();
         this.Hide();
     }
     else
     {
         frmLogin_Load(sender, e);
     }
 }
예제 #2
0
 private void LoginBT_Click(object sender, EventArgs e)
 {
     user = UserNametb.Text.ToUpper();
     pass = PassTB.Text;
     if (new NhanVienBUS().LoginChecking(user, pass))
     {
         Workstation form = new Workstation(user, this);
         form.Show();
         UserNametb.Clear();
         PassTB.Clear();
         this.Hide();
     }
     else
     {
         UserNametb.Clear();
         PassTB.Clear();
     }
 }