Exemple #1
0
        private void AddNewGame(string key = "")
        {
            _addGameForm = new frmAddGame(key);
            _addGameForm.OnDataAvailable += AddGameForm_OnDataAvailable;
            _addGameForm.ShowDialog();

            ReloadGrid();
        }
Exemple #2
0
 private void EditGame()
 {
     if (dgvGames.RowCount > 0 && dgvGames.CurrentRow.Index >= 0)
     {
         _addGameForm = new frmAddGame(_gamesList[dgvGames.CurrentRow.Index]);
         _addGameForm.OnDataAvailable += AddGameForm_OnDataAvailable;
         _addGameForm.ShowDialog();
         ReloadGrid();
     }
 }