private void LoadDataGridView()
        {
            Helper.InitializeDataGridView(dgvProductSectionList);

            Cursor = Cursors.WaitCursor;
            _productSectionList = _productSectionService.GetAll().Where(w => !w.IsDeleted).ToList();
            dgvProductSectionList.DataSource = _productSectionList;
            Cursor = Cursors.Default;
        }
Пример #2
0
        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";
        }