public void OnRaceFinishedWPF(object source, RaceFinishedArgs raceFinishedArgs)
        {
            this.Dispatcher.Invoke(() =>
            {
                if (RaceStats != null)
                    RaceStats.Close();
                if (ParticipantStats != null)
                    ParticipantStats.Close();
            });
            Data.CurrentRace.DriversChanged -= WPFDriversChanged;
            Data.CurrentRace.RaceFinishedEvent -= OnRaceFinishedWPF;

            ImageRender.ClearCache();
            StartRace();
        }
Example #2
0
 public static void OnRaceFinished(object source, RaceFinishedArgs raceFinishedArgs)
 {
     StartRace();
 }