private void frmAccessories_Load(object sender, EventArgs e) { accsorybll = new AccesoryBLL(); producerBLL = new ProducerBLL(); categoryBLL = new CategoryBLL(); bunifuCustomDataGridAccessory.Columns.Add("STT", "STT"); Custom_Theme(); bindingSource.DataSource = accsorybll.GetAllAccessories(); CreateDataGridViewAccessory(bindingSource); CreateDataGridViewDetail(); CreateComboBox(); }
private void frmSale_Load(object sender, EventArgs e) { orderBLL = new OrderBLL(); orderDetailBLL = new OrderDetailBLL(); customerBLL = new CustomerBLL(); accesoryBLL = new AccesoryBLL(); producerBLL = new ProducerBLL(); staffBLL = new StaffBLL(); categoryBLL = new CategoryBLL(); dgv_Accessories.Columns.Add("STT", "STT"); CreateComboBox(); //bindingSource.DataSource = accesoryBLL.GetAccessoriesByFilter(0, "CAC", ""); bindingSource.DataSource = accesoryBLL.GetAllAccessories(); CreateDataGridViewAccessory(bindingSource); CreateDataGridViewCart(); }