Esempio n. 1
0
        private void updateEmulator()
        {
            if (!saveSelectedEmulator || selectedEmulator == null)
            {
                return;
            }

            selectedEmulator.Title = txt_Title.Text;
            if (selectedListItem != null)
            {
                selectedListItem.Text = selectedEmulator.Title;
            }

            selectedEmulator.PlatformTitle = platformComboBox.Text;
            selectedEmulator.PathToRoms    = romDirTextBox.Text;
            selectedEmulator.Filter        = filterTextBox.Text;
            selectedEmulator.IsArcade      = isArcadeCheckBox.Checked;
            selectedEmulator.Company       = txt_company.Text;
            selectedEmulator.Description   = txt_description.Text;
            selectedEmulator.Grade         = (int)gradeUpDown.Value;

            int year;

            if (!int.TryParse(txt_yearmade.Text, out year))
            {
                year = 0;
            }
            selectedEmulator.Year = year;
            selectedEmulator.SetCaseAspect(thumbAspectComboBox.Text);

            selectedEmulator.VideoPreview = videoTextBox.Text;

            selectedEmulator.Save();

            if (emuThumbs != null)
            {
                emuThumbs.ManualPath = txt_Manual.Text;
                emuThumbs.SaveManual();
                if (saveThumbs)
                {
                    emuThumbs.SaveAllThumbs();
                }
            }

            saveSelectedEmulator = false;
        }
Esempio n. 2
0
        public override bool Next()
        {
            Emulator.Title         = txt_Title.Text;
            Emulator.PlatformTitle = platformComboBox.Text;
            Emulator.Company       = txt_company.Text;
            Emulator.Description   = txt_description.Text;

            int year;

            if (!int.TryParse(txt_yearmade.Text, out year))
            {
                year = 0;
            }
            Emulator.Year = year;

            Emulator.Grade = (int)gradeUpDown.Value;
            Emulator.SetCaseAspect(thumbAspectComboBox.Text);

            return(true);
        }