private void btnDong_Click(object sender, EventArgs e) { PL_Home plhome = new PL_Home(); this.Hide(); plhome.Show(); }
private void btnHuy_Click(object sender, EventArgs e) { PL_Home plhome = new PL_Home(); this.Close(); plhome.Show(); }
private void btnDangNhap_Click(object sender, EventArgs e) { if (txtUsername.Text != "" && txtPassword.Text != "") { if (bllEmployee.login(txtUsername.Text, txtPassword.Text) != "") { PL_Home plHome = new PL_Home(); plHome.Show(); this.Hide(); } else { MessageBox.Show("Tài khoảng và mật khẩu không đúng !"); } } else { MessageBox.Show("Xin hãy nhập đầy đủ"); } }
private void dang_Nhap() { if (txtUsername.Text != "" && txtPassword.Text != "") { if (bllEmployee.dangNhap(txtUsername.Text, txtPassword.Text) != "") { PL_Home plHome = new PL_Home(); plHome.Show(); this.Hide(); } else { MessageBox.Show("Tài khoảng và mật khẩu không đúng !"); } } else { MessageBox.Show("Xin hãy nhập đầy đủ"); } }