Exemplo n.º 1
0
        public void Add(RaceLapViewModel lap)
        {
            if (lap.Flags.HasFlag(RaceEventFlags.Deleted))
            {
                return;
            }

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