Пример #1
0
 private void btnOK_Click(object sender, EventArgs e)
 {
     if (txtUser.Text != "" && txtPass.Text != "")
     {
         DTO_DangNhap tv = new DTO_DangNhap(txtUser.Text, txtPass.Text, "");
         if (busTV.ktThanhVien(tv))
         {
             this.Hide();
             TrangChu fm = new TrangChu();
             fm.Show();
         }
         else
         {
             MessageBox.Show("Đăng nhập ko thành công");
         }
     }
 }