예제 #1
0
파일: FrmLogin.cs 프로젝트: minh1061998/ttn
 private void btnLogin_Click(object sender, EventArgs e)
 {
     if (CheckData())
     {
         if (txtUsername.Text == "Admin" && txtPass.Text == "1110")
         {
             MessageBox.Show("Đăng nhập thành công. Welcome to our Shop !");
             FrmNghiepVu nv = new FrmNghiepVu();
             nv.ShowDialog();
             this.Close();
         }
         else
         {
             MessageBox.Show("Đăng nhập không thành công. Vui lòng kiểm tra lại !");
             txtUsername.Text = "";
             txtPass.Text     = "";
             txtUsername.Focus();
         }
     }
 }
예제 #2
0
        private void pbExit_Click(object sender, EventArgs e)
        {
            FrmNghiepVu nv = new FrmNghiepVu();

            nv.ShowDialog();
        }