Пример #1
0
        public void Add(RaceLapViewModel lap)
        {
            if (lap.Flags.HasFlag(RaceEventFlags.Deleted))
            {
                return;
            }

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