public Wzd_NewRom_Info(Wzd_NewRom_Main parent)
 {
     InitializeComponent();
     this.parent = parent;
 }
 public Wzd_NewRom_Start(Wzd_NewRom_Main parent)
 {
     InitializeComponent();
     initEmuBox();
     this.parent = parent;
 }
        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();
            }
        }