private void EditGame() { if (GameIsSelected) { int editedGameId = SelectedGameId; int editedGamePriority = SelectedGamePriority; Form addEditGameForm = new AddEditGameForm(editedGameId); addEditGameForm.ShowDialog(); RefreshGames(); SelectGame(editedGameId, editedGamePriority); } }
private void AddGame() { Form addEditGameForm = new AddEditGameForm(); if (addEditGameForm.ShowDialog() == DialogResult.OK) { RefreshGames(); SelectGame(Game.LastId); } }