private void UpdateMatchups() { Matchups.Clear(); foreach (string playerFaction in MainFactionList) { foreach (string opponentFaction in MainFactionList) { CalculateMatchup(playerFaction, opponentFaction); } } }
/// <summary> /// Resets the Bracket. /// Affects Matches, Rankings, and bracket status. /// Also resets the private Matchups and PlayerByes lists. /// </summary> protected override void ResetBracketData() { base.ResetBracketData(); ActiveRound = 0; if (null == Matchups) { Matchups = new List <Matchup>(); } if (null == PlayerByes) { PlayerByes = new List <int>(); } Matchups.Clear(); PlayerByes.Clear(); }
private void LoadMatchups() { foreach (List <MatchupModel> matchups in Tournament.Rounds) { if (matchups.First().MatchupRound == SelectedRound) { Matchups.Clear(); foreach (MatchupModel m in matchups) { if (m.Winner == null || !UnplayedOnly) { Matchups.Add(m); } } } } if (Matchups.Count > 0) { SelectedMatchup = Matchups.First(); } }