예제 #1
0
 private void DangNhap_Load(object sender, EventArgs e)
 {
     connect = new MyConnect();
     connect.Connect();
     txtTenDangNhap.Text = this.tenDangNhap;
     txtMatKhau.Text     = this.matKhau;
 }
예제 #2
0
 private void TrangChu_Load(object sender, EventArgs e)
 {
     connect = new MyConnect();
     connect.Connect();
     PlayMusic();
     hello.Text = this.ten;
     layKetQua();
 }
예제 #3
0
 private void GiaoDienChoi_Load(object sender, EventArgs e)
 {
     connect = new MyConnect();
     connect.Connect();
     this.count = 0;
     danhSachButton();
     danhSachPictureBox();
     danhSachTienThuong();
 }
 private void ThongTinCaNhan_Load(object sender, EventArgs e)
 {
     connect = new MyConnect();
     connect.Connect();
     nd = new NguoiDung();
     layThongTinNguoiDung();
     txtHo.Text          = nd.Ho;
     txtTen.Text         = nd.Ten;
     gioiTinh1.Text      = nd.gioiTinh;
     txtSoDienThoai.Text = nd.soDienThoai;
     txtEmail.Text       = nd.Email;
     txtDiaChi.Text      = nd.diaChi;
 }
예제 #5
0
        private void XepHang_Load(object sender, EventArgs e)
        {
            connect = new MyConnect();
            connect.Connect();
            String query = "SELECT TOP 10 ROW_NUMBER() OVER (ORDER By KetQua.SoCauDung DESC) N'Số Thứ Tự' ,TaiKhoanNguoiDung.TenDangNhap N'Tên Đăng Nhập' , KetQua.SoCauDung N'Số Câu Đúng' FROM TaiKhoanNguoiDung " + "INNER JOIN KetQua ON TaiKhoanNguoiDung.IDNguoiChoi = KetQua.IDNguoiChoi";

            sqlcmd = new SqlCommand(query, connect.conn);
            try
            {
                connect.conn.Open();
                SqlDataAdapter sqlapdap = new SqlDataAdapter(sqlcmd);
                DataTable      data     = new DataTable();
                sqlapdap.Fill(data);
                connect.conn.Close();
                dataGridView1.DataSource = data;
            }
            catch (SqlException ex)
            {
                ex.ToString();
            }
            connect.conn.Close();
        }
 private void LichSuNguoiDung_Load(object sender, EventArgs e)
 {
     connect = new MyConnect();
     connect.Connect();
     hienThi();
 }
예제 #7
0
 private void DangKi_Load(object sender, EventArgs e)
 {
     connect = new MyConnect();
     connect.Connect();
 }
예제 #8
0
 private void CapNhatThongTin_Load(object sender, EventArgs e)
 {
     connect = new MyConnect();
     connect.Connect();
 }
예제 #9
0
 private void DoiMatKhau_Load(object sender, EventArgs e)
 {
     connect = new MyConnect();
     connect.Connect();
 }