public InfoObdViewModel()
        {
            RpmCommand   = new RpmViewModel();
            SpeedCommand = new SpeedViewModel();
            CoolantTemperatureCommand   = new CoolantTemperatureViewModel();
            EngineOilTemperatureCommand = new EngineOilTemperatureViewModel();
            CalculatedEngineLoadCommand = new CalculatedEngineLoadViewModel();
            FuelTankLevelCommand        = new FuelTankLevelViewModel();
            MafAirFlowRateCommand       = new MafAirFlowRateViewModel();
            GearCommand = new CalculatedViewModel();
            CurrentConsumptionCommand = new CalculatedViewModel();

            ConnectToObdCommand = new Command(ConnectToObdCommandExecute);
        }
Exemple #2
0
 public void Send(SpeedViewModel message)
 {
     Send(JsonConvert.SerializeObject(message));
 }
 public AveregeSpeedViewModel(SpeedViewModel speedViewModel)
 {
     _speedViewModel            = speedViewModel;
     MeasureAveregeSpeedCommand = new Command(MeasureAveregeSpeedCommandExecute);
 }
Exemple #4
0
 internal void Send(SpeedViewModel speedViewModel)
 {
     this.Send(JsonConvert.SerializeObject(speedViewModel));
 }