示例#1
0
        public MainForm()
        {
            this.MainCarDatabase = new CarInfoDatabase();

            MainCarDatabase.UpdateInfo();
            InitializeComponent();
            LoadFactoriesList(MainCarDatabase);
            FactoryIndex = ModelIndex = GenerationIndex = -1;
        }
示例#2
0
        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);
            }
            //остально подгружается только в других этапах
        }//сделано