Scan() public method

public Scan ( ) : void
return void
コード例 #1
0
 public void Load(ICar car)
 {
     CarEngineTools t = new CarEngineTools(car);
     t.Scan();
     Load(car, t);
 }
コード例 #2
0
ファイル: ucSelectModel.cs プロジェクト: nlhans/SimTelemetry
        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();
        }