Пример #1
0
        public void Execute()
        {
            var emulators = emuMgr.GetAvailableEmulators().ToList();

            var selectedEmulator = ConsoleUtilities.SelectEmulator(emulators);

            if (selectedEmulator != null)
            {
                var selectedRom = SelectRom(selectedEmulator);
                if (selectedRom != null)
                {
                    emuMgr.RunEmulator(selectedEmulator, selectedRom);
                }
            }
        }
Пример #2
0
        private void PlayGameBtn_Click(object sender, EventArgs e)
        {
            var emulator = emulatorTreeView.GetSelectedEmulator();

            emuMgr.RunEmulator(emulator, selectedRom);
        }