Example #1
0
        public void Add(RaceLapViewModel lap)
        {
            if (lap.Flags.HasFlag(RaceEventFlags.Deleted))
            {
                return;
            }

            laps.Add(lap);
            GroupLaps();
        }
Example #2
0
 public PresentRaceLapEventArgs(RaceLapViewModel oldLap, RaceLapViewModel newLap)
 {
     this.OldLap = oldLap;
     this.NewLap = newLap;
 }
Example #3
0
 public void InsertLap(RaceLapViewModel lap)
 {
     OnPresent(new PresentRaceLapEventArgs(null, lap));
 }
Example #4
0
 public void PresentLap(RaceLapViewModel lap)
 {
     OnPresent(new PresentRaceLapEventArgs(Presented, lap));
 }
Example #5
0
 public EditRaceLapEventArgs(RaceLapViewModel lap, TimeSpan newTime)
 {
     this.Lap     = lap;
     this.NewTime = newTime;
 }
Example #6
0
 public DeleteRaceLapEventArgs(RaceLapViewModel lap)
 {
     this.Lap = lap;
 }