Example #1
0
        private void tsbNew_Click(object sender, EventArgs e)
        {
            DialogResult dr = TournamentDetail.ShowDialog(this.ParentForm, 0);

            if (dr == DialogResult.OK)
            {
                RefreshGrid();
            }
        }
Example #2
0
        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 tournamentDetailToolStripMenuItem_Click(object sender, EventArgs e)
 {
     TournamentDetail.ShowDialog(this, 0);
 }