Esempio n. 1
0
        public void ShowDebugWindow()
        {
            if (_VmDebugWindow != null)
            {
                _VmDebugWindow.Activate();
                return;
            }
            _Injector.DebugVm(script => WPFDoubleBrowserNavigator.ExcecuteJavascript(script),
                              (path, width, height, onCreate) => ShowHTMLWindow(path, width, height, debug => onCreate(WPFDoubleBrowserNavigator.HTMLWindow.MainFrame, debug)));

            if (_VmDebugWindow == null)
            {
                _DebugInformation.IsDebuggingVm = !_DebugInformation.IsDebuggingVm;
            }
            else
            {
                _DebugInformation.IsDebuggingVm = true;
            }
        }
Esempio n. 2
0
        public void ShowDebugWindow()
        {
            if (_VmDebugWindow != null)
            {
                var state = _VmDebugWindow.WindowState;
                _VmDebugWindow.WindowState = (state == WindowState.Minimized) ? WindowState.Normal : state;
                _VmDebugWindow.Activate();
                return;
            }
            _Injector?.DebugVm(script => WpfDoubleBrowserNavigator.ExcecuteJavascript(script),
                               (path, width, height, onCreate) => ShowHTMLWindow(path, width, height, debug => onCreate(WpfDoubleBrowserNavigator.HTMLWindow.MainFrame, debug)));

            if (_VmDebugWindow == null)
            {
                _DebugInformation.IsDebuggingVm = !_DebugInformation.IsDebuggingVm;
            }
            else
            {
                _DebugInformation.IsDebuggingVm = true;
            }
        }