Ejemplo n.º 1
0
 public Wzd_NewRom_Info(Wzd_NewRom_Main parent)
 {
     InitializeComponent();
     this.parent = parent;
 }
Ejemplo n.º 2
0
 public Wzd_NewRom_Start(Wzd_NewRom_Main parent)
 {
     InitializeComponent();
     initEmuBox();
     this.parent = parent;
 }
Ejemplo n.º 3
0
        private void addRomButton_Click(object sender, EventArgs e)
        {
            Game newGame = null;
            using (Wzd_NewRom_Main dlg = new Wzd_NewRom_Main())
            {
                if (dlg.ShowDialog() == DialogResult.OK)
                    newGame = dlg.NewGame;
            }

            if (newGame != null)
            {
                newGame.Commit();
                if (!newGame.InfoChecked)
                {
                    newGame.SearchTitle = newGame.Title; //importer will reset title so store user entered title
                    sendToImporter(new Game[] { newGame });
                }
                else //set selectedListItem to new game so it will be selected after list refresh
                    selectedListItem = new ListViewItem(newGame.Title) { Tag = newGame };
                UpdatePanel();
            }
        }