Exemple #1
0
        private void TournamentManager_StandingsUpdated(int tournamentID, StandingsUpdatedEventArgs e)
        {
            if (!Application.Current.Dispatcher.CheckAccess())
            {
                Application.Current.Dispatcher.Invoke(() => this.TournamentManager_StandingsUpdated(tournamentID, e));
            }
            else
            {
                if (tournamentID != this.TournamentID)
                {
                    return;
                }

                this.Standings.Clear();

                foreach (IStanding standing in e.Standings)
                {
                    this.Standings.Add(new StandingViewModel(standing));
                }
            }
        }
 private void TournamentManager_StandingsUpdated(int tournamentID, StandingsUpdatedEventArgs e)
 {
     Clients.All.standingsUpdated(tournamentID, e.Standings);
 }