예제 #1
0
 private void AddEntry(LapTimeEntry entry) {
     InitializeCm();
     if (_cmStorage.IsBetter(entry)) {
         _cmStorage.Set(entry);
         UpdateAsync().Forget();
     }
 }
예제 #2
0
 private string Pack(LapTimeEntry entry) {
     return entry.EntryDate.ToUnixTimestamp().ToInvariantString() + ";" +
             ((long)entry.LapTime.TotalMilliseconds).ToInvariantString();
 }
예제 #3
0
 public bool Same(LapTimeEntry entry)
 {
     return(string.Equals(entry.CarId, CarId, StringComparison.OrdinalIgnoreCase) &&
            string.Equals(entry.TrackAcId, TrackAcId, StringComparison.OrdinalIgnoreCase));
 }
예제 #4
0
 public bool Same(LapTimeEntry entry) {
     return string.Equals(entry.CarId, CarId, StringComparison.OrdinalIgnoreCase) &&
             string.Equals(entry.TrackAcId, TrackAcId, StringComparison.OrdinalIgnoreCase);
 }
예제 #5
0
 public LapTimeWrapped(LapTimeEntry entry) {
     Entry = entry;
     Prepare().Forget();
 }