private void button1_Click(object sender, EventArgs e)
 {
     if (txttendangnhap != null && txtmatkhau != null)
     {
         var res = new DangNhapMod().laydulieutaikhoan(txtmatkhau.Text, txttendangnhap.Text);
         if (res == null)
         {
             MessageBox.Show("Đăng Nhập Không Thành Công");
         }
         else
         {
             MessageBox.Show("Đăng Nhập Thành Công");
             Form1 f = new Form1();
             f.Show();
         }
     }
 }
Beispiel #2
0
        void hienthidanhsach()
        {
            DangNhapMod dn = new DangNhapMod();

            dgvtaikhoan.DataSource = dn.allds();
        }