private void drawBYEpanel(Panel zone, TeamTextBox text, Button b) { zone.BackColor = Color.DarkGray; zone.Enabled = false; text.Text = "BYE"; text.Enabled = false; b.Visible = false; }
/// <summary> Private constructor helper to setup all components /// </summary> private void instantiateControls() { redZone = new Panel(); blueZone = new Panel(); back = new Button(); redTeamBox = new TeamTextBox(RedTeam); blueTeamBox = new TeamTextBox(BlueTeam); redTeamBox.IsSimple = true; blueTeamBox.IsSimple = true; redWin = new Button(); blueWin = new Button(); back = new Button(); }
public TourneySeed(Button c, Button d, Button u, TeamTextBox b, int p, int m) { CloseButton = c; UpButton = u; DownButton = d; Box = b; team = Box.Team; pos = p; max = m; if (team == null) { c.Enabled = false; } else { c.Enabled = true; } }