Esempio n. 1
0
        ///// ADD ITEMS /////
        private void addToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormGameBackup addGameDialog = new FormGameBackup();

            addGameDialog.ShowDialog();
            if (addGameDialog.DialogResult == DialogResult.OK)
            {
                gameBackupList.AddLast(addGameDialog.GetGameBackup());
                refillGameBackupItems();
            }
        }
Esempio n. 2
0
        private void gameListView_DoubleClick(object sender, EventArgs e)
        {
            FormGameBackup fgb = null;

            foreach (GameBackup game in gameBackupList)
            {
                if (game.GameName.Equals(selectedItem.Text))
                {
                    fgb = new FormGameBackup();
                    fgb.SetGameBackup(game);
                    fgb.ShowDialog();
                    if (fgb.DialogResult == DialogResult.OK)
                    {
                        gameBackupList.Remove(game);
                    }
                    break;
                }
            }
            if (fgb.DialogResult == DialogResult.OK)
            {
                gameBackupList.AddLast(fgb.GetGameBackup());
                refillGameBackupItems();
            }
        }