private void ucTimKiemKhachHang_Load(object sender, EventArgs e) { cboTimKiem.Properties.AppearanceDropDown.Font = new Font("Time New Roman", 12, FontStyle.Bold); cboTimKiem.Properties.Items.Clear(); cboTimKiem.Properties.Items.Add("Mã khách hàng"); cboTimKiem.Properties.Items.Add("Tên khách hàng"); cboTimKiem.Text = "Mã khách hàng"; cboTimKiem.TabIndex = 1; txtTimKiem.TabIndex = 2; btnTimKiem.TabIndex = 3; DataTable dtDanhSachKhachHang = new DataTable(); dtDanhSachKhachHang = khControl.getAllData(); gcTimKiemKhachHang.DataSource = dtDanhSachKhachHang; }
private void frmKhachHang_Load(object sender, EventArgs e) { this.MaximizeBox = false; DeleteText(); if (!flag) { GanDuLieu(); } cboGioiTinh.Properties.Items.Clear(); cboGioiTinh.Properties.Items.Add("Nam"); cboGioiTinh.Properties.Items.Add("Nữ"); cboGioiTinh.Text = "Nam"; cboGioiTinh.Properties.AppearanceDropDown.Font = new Font("Time New Roman", 12, FontStyle.Bold); if (flag) { frmMain frm = new frmMain(); txtMaKH.Text = frm.MaSoTuTang("KH", khControl.getAllData()); } }
private void ucKhachHang_Load(object sender, EventArgs e) { gcDanhSachKhachHang.DataSource = khControl.getAllData(); }