public void Load(ICar car) { CarEngineTools t = new CarEngineTools(car); t.Scan(); Load(car, t); }
void _models_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e) { string file = ""; if (_models.SelectedItems.Count > 0) file = _models.SelectedItems[0].SubItems[2].Text; else if (_models.Items.Count == 0) return; else file = _models.Items[0].SubItems[2].Text; car = fGarage.Sim.Garage.CarFactory(fGarage.Mod, file); engineinfo = new CarEngineTools(car); engineinfo.Scan(); UpdateLabels(); ucEngine.Load(car, engineinfo); Resize(); }