コード例 #1
0
 private TeamTextBox destroy(TeamTextBox champ)
 {
     champ.Dispose();
     champ.Visible = false;
     champ         = null;
     return(null);
 }
コード例 #2
0
 public void init(TourneyMatchUp[] startingTeams, Control p, TourneyMatchUp[] brackets)
 {
     Parent        = p;
     TourneyWinner = new TeamTextBox();
     setBrackets(brackets);
     //initTeams( startingTeams );
     //Starters = brackets;
 }
コード例 #3
0
 public void destroyTourney()
 {
     Starters      = destroy(Starters);
     Quarters      = destroy(Quarters);
     Semis         = destroy(Semis);
     Finals        = destroy(Finals);
     TourneyWinner = destroy(TourneyWinner);
 }
コード例 #4
0
 private void updateArray(TourneyMatchUp[] matchups, TeamTextBox team)
 {
     if (matchups[0].InCompletedState())
     {
         team          = new TeamTextBox(matchups[0].Winner);
         team.Visible  = true;
         team.Parent   = Parent;
         team.Location = getLocationInfoForControl(0, 0);
     }
     else
     {
         team.Visible = false;
     }
 }