Пример #1
0
        private void btnAddGame_Click(object sender, EventArgs e)
        {
            frmAddOrUpdateGames addGameForm = new frmAddOrUpdateGames(null);

            addGameForm.ShowDialog();
            PopulateGameList();
        }
Пример #2
0
        private void btnUpdateGame_Click(object sender, EventArgs e)
        {
            Game game           = (Game)lstGamesList.SelectedItem;
            var  updateGameForm = new frmAddOrUpdateGames(game);

            updateGameForm.ShowDialog();
            PopulateGameList();
        }