Example #1
0
 private void BtnAddGame_Click(object sender, EventArgs e)
 {
     if (textBoxGameName.Text != "")
     {
         GameList.AddGame(textBoxGameName.Text);
         textBoxGameName.Text = "";
         this.Close();
     }
 }
Example #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;
     }
 }