private TeamTextBox destroy(TeamTextBox champ) { champ.Dispose(); champ.Visible = false; champ = null; return(null); }
public void init(TourneyMatchUp[] startingTeams, Control p, TourneyMatchUp[] brackets) { Parent = p; TourneyWinner = new TeamTextBox(); setBrackets(brackets); //initTeams( startingTeams ); //Starters = brackets; }
public void destroyTourney() { Starters = destroy(Starters); Quarters = destroy(Quarters); Semis = destroy(Semis); Finals = destroy(Finals); TourneyWinner = destroy(TourneyWinner); }
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; } }