public DlgManageTournament() { this.InitializeComponent(); Current = this; this.btnAutoPair.Enabled = false; this.btnRound.Enabled = false; this.btnEject.Enabled = false; this.btnTournament.Enabled = false; if (User.Current.Name.ToUpper() != "IN-AGENT911") { this.btnRandomResults.Visible = false; this.btnRandomRecs.Visible = false; this.btnResetScores.Visible = false; this.btnSetNoResult.Visible = false; } foreach (SupcomMap map in SupcomMapList.Maps) { this.cbMap.Items.Add(map); } }
private void menuItem1_Click(object sender, EventArgs e) { if (this.mSelectedRecord != null) { int tournamentid = Convert.ToInt32(this.mSelectedRecord["tournament_id"]); DlgManageTournament tournament = new DlgManageTournament(); tournament.MainForm = base.MainForm; tournament.LoadTournament(tournamentid); tournament.Show(); } }