示例#1
0
 private void addTournamentButton_Click(object sender, EventArgs e)
 {
     if (checkIfLoggedIn())
     {
         AddNewTournament ant = new AddNewTournament(mm, ttmDataGridView, tmDataGridView, null);
         ant.StartPosition = FormStartPosition.CenterParent;
         if (ant.ShowDialog(this) != DialogResult.Cancel)
         {
             loadTournaments();
         }
     }
 }
示例#2
0
        private void ttmDataGridView_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            int              rowIndex = e.RowIndex;
            DataGridView     dgv      = sender as DataGridView;
            DataGridViewRow  row      = dgv.Rows[rowIndex];
            AddNewTournament ant      = new AddNewTournament(mm, ttmDataGridView, tmDataGridView, row.Cells["description"].Value.ToString());

            ant.StartPosition = FormStartPosition.CenterParent;
            if (ant.ShowDialog(this) != DialogResult.Cancel)
            {
                loadTournaments();
            }
        }