public QuanLyKhachHangVaSuKienControl() { InitializeComponent(); customer_dao = dao.CustomerDao.getInstance(); event_dao = dao.EventDao.getInstance(); commandButtonManagementKhachHang = new CommandButtonImp(bt_themKhachHang_quanLyKhachHangVaSuKien, bt_refreshKhachHang_quanLyKhachHangVaSuKien, bt_xoaKhachHang_quanLyKhachHangVaSuKien, bt_capNhatKhachHang_quanLyKhachHangVaSuKien, dgv_khachHang_quanLyKhachHangVaSuKien); commandButtonManagementEvent = new CommandButtonImp(bt_themSuKien_quanLyKhachHangVaSuKien, bt_refreshSuKien_quanLyKhachHangVaSuKien, bt_xoaSuKien_quanLyKhachHangVaSuKien, bt_capNhatSuKien_quanLyKhachHangVaSuKien, dgv_suKien_quanLyKhachHangVaSuKien); loadData(); }
public BanHangControl() { InitializeComponent(); cardModel = new CardModel(new List <ListViewItem>()); cardCareTaker = new CardCareTaker(); product_dao = dao.ProductDao.getInstance(); event_dao = dao.EventDao.getInstance(); customer_dao = dao.CustomerDao.getInstance(); bill_dao = dao.BillDao.getInstance(); detail_bill = dao.DetailBillDao.getInstance(); lb_nhanVienBanHang_banHangControl.Text = Program.currentEmployee.name_employee; loadData(); dgv_sanPham_banHangControl.ClearSelection(); }