public MainForm() { this.MainCarDatabase = new CarInfoDatabase(); MainCarDatabase.UpdateInfo(); InitializeComponent(); LoadFactoriesList(MainCarDatabase); FactoryIndex = ModelIndex = GenerationIndex = -1; }
public void LoadFactoriesList(CarInfoDatabase CurrDatabase) { if (comboBoxFactory != null) { comboBoxFactory.ResetText(); comboBoxFactory.Items.Clear(); } //if (CurrDatabase.Factories == null) return; for (int i = 0; i < CurrDatabase.Factories.Count; i++) { comboBoxFactory.Items.Add(CurrDatabase.Factories[i].FactoryName); } //остально подгружается только в других этапах }//сделано