public void RequestGetTournamentResults(int tournamentID) { Clients.Caller.requestGetTournamentResultsResponse(TournamentManager.GetTournamentResults(tournamentID)); }
public void DisplayResults() { List <GroupResults> results = TournamentManager.GetTournamentResults(this.TournamentID); foreach (GroupResults groupResults in results) { switch (groupResults.GroupName) { case "Overall": this.OverallResults.Clear(); foreach (IStanding standing in groupResults.Standings) { this.OverallResults.Add(new StandingViewModel(standing)); } break; case "Lion": this.LionResults.Clear(); foreach (IStanding standing in groupResults.Standings) { this.LionResults.Add(new StandingViewModel(standing)); } break; case "Tiger": this.TigerResults.Clear(); foreach (IStanding standing in groupResults.Standings) { this.TigerResults.Add(new StandingViewModel(standing)); } break; case "Wolf": this.WolfResults.Clear(); foreach (IStanding standing in groupResults.Standings) { this.WolfResults.Add(new StandingViewModel(standing)); } break; case "Bear": this.BearResults.Clear(); foreach (IStanding standing in groupResults.Standings) { this.BearResults.Add(new StandingViewModel(standing)); } break; case "Webelos I": this.WebelosIResults.Clear(); foreach (IStanding standing in groupResults.Standings) { this.WebelosIResults.Add(new StandingViewModel(standing)); } break; case "Webelos II": this.WebelosIIResults.Clear(); foreach (IStanding standing in groupResults.Standings) { this.WebelosIIResults.Add(new StandingViewModel(standing)); } break; } } }