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); } }
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(); } }