示例#1
0
 private void usrDanhSachKhachHang_Load(object sender, EventArgs e)
 {
     busLoaiKH = new BUS.BUSLOAIKH();
     usrLoaiKhachHang LKH = new usrLoaiKhachHang();
     LKH.DSLoaiKH += new usrLoaiKhachHang.LoaiKH(hanhdong);
     panel1.Controls.Add(LKH);
     LKH.Dock = DockStyle.Fill;
     dtoLoaiKH = busLoaiKH.LayTatCaLOAIKH();
     glkLKH.Properties.DataSource = dtoLoaiKH;
     glkLKH.Properties.DisplayMember = "TENLOAIKH";
     glkLKH.Properties.ValueMember = "MALOAIKH";
     LoadKhachHang();
     backgroundWorker1.RunWorkerAsync();
 }
示例#2
0
 private void btnLoaiKH_ItemClick(object sender, ItemClickEventArgs e)
 {
     usrLoaiKhachHang usr = new usrLoaiKhachHang();
     panelControl1.Controls.Clear();
     panelControl1.Controls.Add(usr);
     usr.Dock = DockStyle.Fill;
 }