private void DriverTimingOnNewLapStarted(object sender, DriverTiming.LapEventArgs e) { /*if (!Laps.Last().LapInfo.Completed) * { * Laps.RemoveAt(Laps.Count - 1); * }*/ var newLapModel = new LapViewModel(e.Lap); if (Laps.Any() && Laps.Last().LapNumber == newLapModel.LapNumber) { Laps.Remove(Laps.Last()); } Laps.Add(newLapModel); _gui.LapsGrid.ScrollIntoView(newLapModel); }