예제 #1
0
        private void EditGame()
        {
            if (GameIsSelected)
            {
                int editedGameId = SelectedGameId;
                int editedGamePriority = SelectedGamePriority;

                Form addEditGameForm = new AddEditGameForm(editedGameId);
                addEditGameForm.ShowDialog();

                RefreshGames();
                SelectGame(editedGameId, editedGamePriority);
            }
        }
예제 #2
0
        private void AddGame()
        {
            Form addEditGameForm = new AddEditGameForm();

            if (addEditGameForm.ShowDialog() == DialogResult.OK)
            {
                RefreshGames();
                SelectGame(Game.LastId);
            }
        }