private void Fill() { CWCarBrandsLogic brands = new CWCarBrandsLogic(manager); DataGV.AutoGenerateColumns = false; DataGV.DataSource = brands.GetAll(); DataGV.Update(); }
public CarData(string _mode, int? _id) { InitializeComponent(); manager = new ContextManager(); mode = _mode; CWCarBrandsLogic carBrandsLogic = new CWCarBrandsLogic(manager); int i = 0; foreach (CWCarBrand brand in carBrandsLogic.GetAll()) { //BrandsICB.Properties.Items.Add(new DevExpress.XtraEditors.Controls.ImageComboBoxItem(brand, i)); } CWCarModelsLogic carModelsLogic = new CWCarModelsLogic(manager); //ModelsLUE.Properties.DataSource = carModelsLogic.GetAll(); id = _id; Fill(); if (mode == "edit") { } }
public CarData(string _mode, int?_id) { InitializeComponent(); manager = new ContextManager(); mode = _mode; CWCarBrandsLogic carBrandsLogic = new CWCarBrandsLogic(manager); int i = 0; foreach (CWCarBrand brand in carBrandsLogic.GetAll()) { //BrandsICB.Properties.Items.Add(new DevExpress.XtraEditors.Controls.ImageComboBoxItem(brand, i)); } CWCarModelsLogic carModelsLogic = new CWCarModelsLogic(manager); //ModelsLUE.Properties.DataSource = carModelsLogic.GetAll(); id = _id; Fill(); if (mode == "edit") { } }