Example #1
0
 private void gridControl_Load()
 {
     db = new Entities();
     KhachHangCtrl.LoadLookUpEdit(rleKhachHang, db);
     NhanVienCtrl.LoadLookUpEdit(rleNhanVienKinhDoanh, db);
     SanPhamCtrl.LoadBindingSource(cATSanPhamBindingSource, db);
 }
Example #2
0
 private void frmSanPham_Load(object sender, EventArgs e)
 {
     db = new Entities();
     KhachHangCtrl.LoadLookUpEdit(rleKhachHang, db);
     NhanVienCtrl.LoadLookUpEdit(rleNhanVienKinhDoanh, db);
     SanPhamCtrl.LoadBindingSource(cATSanPhamBindingSource, db);
     VaiTroQuyenCtrl.ReconfigFormControls(this, db);
     GridHelper.ReconfigGridView(gridView);
 }