private void BtnAddGame_Click(object sender, EventArgs e) { if (textBoxGameName.Text != "") { GameList.AddGame(textBoxGameName.Text); textBoxGameName.Text = ""; this.Close(); } }
private void buttonAddGame_Click(object sender, EventArgs e) { if (textBoxGameName.Text != "") { GameList.AddGame(textBoxGameName.Text); textBoxGameName.Text = ""; UpdateGameList(); listBoxGames.SelectedIndex = listBoxGames.Items.Count - 1; } }