Beispiel #1
0
        private void CommandVmSettings_OnExecute(Object objArg)
        {
            try
            {
                if (m_vm == null)
                {
                    return;
                }
                var viewSettings = GetView <IMachineSettingsView>();
                if (viewSettings == null)
                {
                    return;
                }
                using (viewSettings)
                {
                    viewSettings.Init(m_view.Host, m_vm);
                    viewSettings.ShowDialog(m_view);
                    m_vm.RequestFrame();

                    CommandTapePause.Update();
                }
            }
            catch (Exception ex)
            {
                Logger.Error(ex);
                m_userMessage.Error(ex);
            }
        }
Beispiel #2
0
 private void UpdateAllCommands()
 {
     CommandFileOpen.Update();
     CommandFileSave.Update();
     CommandFileExit.Update();
     CommandViewFullScreen.Update();
     CommandViewSyncSource.Update();
     CommandViewScaleMode.Update();
     CommandViewVideoFilter.Update();
     CommandViewSmooth.Update();
     CommandViewMimicTv.Update();
     CommandViewDisplayIcon.Update();
     CommandViewDebugInfo.Update();
     CommandViewToolBar.Update();
     CommandViewStatusBar.Update();
     CommandViewScaleRatio.Update();
     CommandVmPause.Update();
     CommandVmMaxSpeed.Update();
     CommandVmWarmReset.Update();
     //CommandVmColdReset.Update();
     CommandVmNmi.Update();
     CommandVmSettings.Update();
     CommandHelpViewHelp.Update();
     CommandHelpKeyboardHelp.Update();
     CommandHelpAbout.Update();
     CommandTapePause.Update();
     CommandQuickLoad.Update();
     CommandOpenUri.Update();
 }