예제 #1
0
        private void btnThoat_Click(object sender, EventArgs e)
        {
            this.Hide();
            FrmHome home = new FrmHome();

            home.ShowDialog();
            this.Close();
        }
예제 #2
0
 private void btnDangNhap_Click(object sender, EventArgs e)
 {
     if (Login(txtTaiKhoan.Text, txtMatKhau.Text) == true)
     {
         this.Hide();
         FrmHome.login = true;
         FrmHome home = new FrmHome();
         home.ShowDialog();
         this.Close();
     }
     else
     {
         lbTieuDe.Text = "Đăng nhập thất bại";
     }
 }