Beispiel #1
0
        private void btdong_Click(object sender, EventArgs e)
        {
            FrmSystem frmMain = new FrmSystem();

            frmMain.Show();
            this.Close();
        }
Beispiel #2
0
 private void btnDangnhap_Click(object sender, EventArgs e)
 {
     string ten, mk, quyen;
     bool Active;
     ten = txtDangnhap.Text;
     mk = txtMatkhau.Text;
     quyen = "admin";
     Active = true;
     if (db.checkLoginAdmin(ten, mk, quyen, Active) == true)
     {
         FrmSystem frmMain = new FrmSystem();
         frmMain.Show();
         Hide();
     }
     else
     {
         MessageBox.Show("Sai thông tin đăng nhập!!", "ĐĂNG NHẬP", MessageBoxButtons.OK);
         txtMatkhau.Text = "";
         txtDangnhap.Text = "";
         txtMatkhau.Focus();
     }
 }
Beispiel #3
0
        private void btnDangnhap_Click(object sender, EventArgs e)
        {
            string ten, mk, quyen;
            bool   Active;

            ten    = txtDangnhap.Text;
            mk     = txtMatkhau.Text;
            quyen  = "admin";
            Active = true;
            if (db.checkLoginAdmin(ten, mk, quyen, Active) == true)
            {
                FrmSystem frmMain = new FrmSystem();
                frmMain.Show();
                Hide();
            }
            else
            {
                MessageBox.Show("Sai thông tin đăng nhập!!", "ĐĂNG NHẬP", MessageBoxButtons.OK);
                txtMatkhau.Text  = "";
                txtDangnhap.Text = "";
                txtMatkhau.Focus();
            }
        }
Beispiel #4
0
 private void btdong_Click(object sender, EventArgs e)
 {
     FrmSystem frmMain = new FrmSystem();
     frmMain.Show();
     this.Close();
 }