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