public CurrentTripViewModel() { CurrentTrip = new Trip { UserId = Settings.Current.UserUID, Points = new ObservableRangeCollection<TripPoint>() }; photos = new List<Photo>(); fuelConsumptionRate = 0; FuelConsumptionUnits = Settings.MetricUnits ? "Liters" : "Gallons"; DistanceUnits = Settings.MetricDistance ? "Kilometers" : "Miles"; ElapsedTime = "0s"; Distance = "0.0"; FuelConsumption = "N/A"; EngineLoad = "N/A"; obdDataProcessor = OBDDataProcessor.GetProcessor(); }
public static OBDDataProcessor GetProcessor() { return(_obdDataProcessor ?? (_obdDataProcessor = new OBDDataProcessor())); }
public static OBDDataProcessor GetProcessor() { return _obdDataProcessor ?? (_obdDataProcessor = new OBDDataProcessor()); }