public static void Show(Form owner, int tournamentID) { TournamentDetail frm = new TournamentDetail(); IsAllowEdit = true; frm.Show(tournamentID, IsAllowEdit); frm.Show(owner); }
private void tsbNew_Click(object sender, EventArgs e) { DialogResult dr = TournamentDetail.ShowDialog(this.ParentForm, 0); if (dr == DialogResult.OK) { RefreshGrid(); } }
public static DialogResult Show(Form owner, int tournamentID, bool allowEdit) { TournamentDetail frm = new TournamentDetail(); IsAllowEdit = allowEdit; frm.Show(tournamentID, allowEdit); return(frm.ShowDialog(owner)); //frm.Show(owner); }
private void ShowSelectedTournament() { if (this.SelectedID > 0) { DialogResult dr = TournamentDetail.Show(this.ParentForm, this.SelectedID, TournamentStatus == TournamentStatusE.Unknown); if (dr == DialogResult.OK) { RefreshGrid(); } } }
private void newTournamentToolStripMenuItem_Click(object sender, EventArgs e) { TournamentDetail.Show(this, 0); }
private void tournamentDetailToolStripMenuItem_Click(object sender, EventArgs e) { TournamentDetail.ShowDialog(this, 0); }