コード例 #1
0
 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();
 }
コード例 #2
0
ファイル: OBDDataProcessor.cs プロジェクト: t-sup/MyDriving
 public static OBDDataProcessor GetProcessor()
 {
     return(_obdDataProcessor ?? (_obdDataProcessor = new OBDDataProcessor()));
 }
コード例 #3
0
 public static OBDDataProcessor GetProcessor()
 {
     return _obdDataProcessor ?? (_obdDataProcessor = new OBDDataProcessor());
 }