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); }
public void Send(SpeedViewModel message) { Send(JsonConvert.SerializeObject(message)); }
public AveregeSpeedViewModel(SpeedViewModel speedViewModel) { _speedViewModel = speedViewModel; MeasureAveregeSpeedCommand = new Command(MeasureAveregeSpeedCommandExecute); }
internal void Send(SpeedViewModel speedViewModel) { this.Send(JsonConvert.SerializeObject(speedViewModel)); }