Ejemplo n.º 1
0
        private void EditGame()
        {
            if (GameIsSelected)
            {
                int editedGameId = SelectedGameId;
                int editedGamePriority = SelectedGamePriority;

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

                RefreshGames();
                SelectGame(editedGameId, editedGamePriority);
            }
        }
Ejemplo n.º 2
0
        private void AddGame()
        {
            Form addEditGameForm = new AddEditGameForm();

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