private void BANVE_BTN_Click(object sender, EventArgs e) { QLVE form = new QLVE(); form.Show(); this.Close(); }
private void button1_Click(object sender, EventArgs e) { string userName = txtUser.Text; string passWord = txtPass.Text; if (Login(userName, passWord)) { if (bus.PhanQuyen(userName) == "admin") { Admin a = new Admin(); this.Hide(); a.ShowDialog(); this.Show(); } else if (bus.PhanQuyen(userName) == "report") { NhanVienBaoCao f = new NhanVienBaoCao(); this.Hide(); f.ShowDialog(); this.Show(); } else { QLVE f = new QLVE(); this.Hide(); f.ShowDialog(); this.Show(); } } else { MessageBox.Show("Sai tên tài khoản hoặc mật khẩu!"); } }