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