Esempio n. 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            DangNhap dn = new DangNhap();

            if (string.IsNullOrEmpty(txtTenDangNhap.TextName.Trim()))
            {
                MessageBox.Show("Không được bỏ trống ");
                this.txtTenDangNhap.Focus();
                return;
            }
            if (string.IsNullOrEmpty(txtMatKhau.TextName.Trim()))
            {
                MessageBox.Show("không được bỏ trống ");
                this.txtMatKhau.Focus();
                return;
            }
            int kq = dn.Check_config(); //hàm Check_Config() thuộc Class QL_NguoiDung

            if (kq == 0)
            {
                ProcessLogin();// Cấu hình phù hợp xử lý đăng nhập
            }
        }