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(); }
public static void OnRaceFinished(object source, RaceFinishedArgs raceFinishedArgs) { StartRace(); }