private void LoadDataGridView() { Helper.InitializeDataGridView(dgvProductSectionList); Cursor = Cursors.WaitCursor; _productSectionList = _productSectionService.GetAll().Where(w => !w.IsDeleted).ToList(); dgvProductSectionList.DataSource = _productSectionList; Cursor = Cursors.Default; }
private void LoadProductSectionComboBox() { Helper.InitializeComboBox(cbxProductSection); Cursor = Cursors.WaitCursor; _productSectionList = _productSectionService.GetAll().Where(w => !w.IsDeleted).ToList(); Cursor = Cursors.Default; cbxProductSection.DataSource = _productSectionList; cbxProductSection.DisplayMember = "ProductSectionName"; cbxProductSection.ValueMember = "Id"; }