Exemplo n.º 1
0
 private void AddGamesButton_Click(object sender, EventArgs e)
 {
     GamesForm newGames = new GamesForm("");
     if (newGames.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         BlueVex2.Properties.Settings.Default.Games.Add(newGames.GameName + "," + newGames.GamePW);
         PopulateGamesListView();
     }
 }
Exemplo n.º 2
0
 private void EditGamesButton_Click(object sender, EventArgs e)
 {
     if (this.GamesListView.SelectedItems.Count > 0)
     {
         string itemString = this.GamesListView.SelectedItems[0].Text + "," + this.GamesListView.SelectedItems[0].SubItems[1].Text;
         GamesForm newGames = new GamesForm(itemString);
         if (newGames.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             BlueVex2.Properties.Settings.Default.Games.Remove(itemString);
             BlueVex2.Properties.Settings.Default.Games.Add(newGames.GameName + "," + newGames.GamePW);
             PopulateGamesListView();
         }
     }
 }