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