Beispiel #1
0
 private void btnDangNhap_Click(object sender, EventArgs e)
 {
     FormMenu frmMenu = new FormMenu();
     Form frm = new Form();
     DataTable dt = new DataTable();
     dt = DN.DangNhap(txtTenDN.Text, txtMK.Text);
     if (dt.Rows != null) frmMenu.Show();
 }
Beispiel #2
0
        private void btnDangNhap_Click(object sender, EventArgs e)
        {
            FormMenu  frmMenu = new FormMenu();
            Form      frm     = new Form();
            DataTable dt      = new DataTable();

            dt = DN.DangNhap(txtTenDN.Text, txtMK.Text);
            if (dt.Rows != null)
            {
                frmMenu.Show();
            }
        }
Beispiel #3
0
 private void btnDangNhap_Click(object sender, EventArgs e)
 {
     FormMenu frmMenu = new FormMenu();
     Form frm = new Form();
     DataTable dt = new DataTable();
     dt = DN.DangNhap(txtTenDN.Text, txtMK.Text);
     if (dt.Rows.Count != 0)
     {
         this.Hide();
         frmMenu.ShowDialog();
         this.Show();
     }
     else MessageBox.Show("Đăng nhập không thành công!");
 }