コード例 #1
0
        private void TournamentManager_NextRacesUpdated(int tournamentID, NextRacesUpdatedEventArgs e)
        {
            if (!Application.Current.Dispatcher.CheckAccess())
            {
                Application.Current.Dispatcher.Invoke(() => this.TournamentManager_NextRacesUpdated(tournamentID, e));
            }
            else
            {
                if (tournamentID != this.TournamentID)
                {
                    return;
                }

                PopulateNextRaces(e.NextRaces);
            }
        }
コード例 #2
0
ファイル: RlmHub.cs プロジェクト: scottmcclay/RaceLaneManager
 private void TournamentManager_NextRacesUpdated(int tournamentID, NextRacesUpdatedEventArgs e)
 {
     Clients.All.nextRacesUpdated(tournamentID, e.NextRaces);
 }