public GUI_LichSuGia(TAIKHOAN tmp) { TK = tmp; ctl = new BUS_LichSuGia(); ctlSP = new BUS_SanPham(); db = new CMART8Entities(); vl = new ValidationExtension(); InitializeComponent(); controlFunction(TK.QUYEN); btnAdd.Click += btnAdd_Click; btnEdit.Click += btnEdit_Click; lstLSG.Click += lstLSG_Click; btnSearch.Click += btnSearch_Click; btnCancel.Click += btnCancel_Click; btnSave.Click += btnSave_Click; btnDelete.Click += btnDelete_Click; }
public GUI_SanPham(TAIKHOAN tmp) { TK = tmp; ctlNCC = new BUS_NhaCungCap(); ctl = new BUS_SanPham(); ctlLSP = new BUS_LoaiSanPham(); db = new CMART8Entities(); vl = new ValidationExtension(); InitializeComponent(); controlFunction(TK.QUYEN); controlFunction("enableAll"); btnAdd.Click += btnAdd_Click; btnEdit.Click += btnEdit_Click; btnCancel.Click += btnCancel_Click; btnSave.Click += btnSave_Click; btnSearch.Click += btnSearch_Click; btnDelete.Click += btnDelete_Click; lstSP.Click += lstSP_Click; }