Пример #1
0
 private void Fill()
 {
     CWCarBrandsLogic brands = new CWCarBrandsLogic(manager);
     DataGV.AutoGenerateColumns = false;
     DataGV.DataSource = brands.GetAll();
     DataGV.Update();
 }
Пример #2
0
        private void Fill()
        {
            CWCarBrandsLogic brands = new CWCarBrandsLogic(manager);

            DataGV.AutoGenerateColumns = false;
            DataGV.DataSource          = brands.GetAll();
            DataGV.Update();
        }
Пример #3
0
        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")
            {

            }
        }
Пример #4
0
        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")
            {
            }
        }