private void DisplayDebug() { const WindowStyle style = WindowStyle.WS_OVERLAPPEDWINDOW | WindowStyle.WS_CLIPCHILDREN | WindowStyle.WS_CLIPSIBLINGS | WindowStyle.WS_VISIBLE; var cfxWindowInfo = new CfxWindowInfo { Style = style, ParentWindow = IntPtr.Zero, WindowName = "Neutronium Chromium Dev Tools", X = 200, Y = 200, Width = 800, Height = 600 }; _DebugCfxClient = new CfxClient(); _DebugCfxClient.GetDisplayHandler += _DebugCfxClient_GetDisplayHandler; _DebugCfxClient.GetLifeSpanHandler += DebugClient_GetLifeSpanHandler; _BrowserHost.ShowDevTools(cfxWindowInfo, _DebugCfxClient, new CfxBrowserSettings(), null); }
private void DisplayDebug(CfxGetLoadHandlerEventHandler handler = null, Chromium.WindowStyle style = Chromium.WindowStyle.WS_OVERLAPPEDWINDOW | Chromium.WindowStyle.WS_CLIPCHILDREN | Chromium.WindowStyle.WS_CLIPSIBLINGS | Chromium.WindowStyle.WS_VISIBLE) { var cfxWindowInfo = new CfxWindowInfo { Style = style, ParentWindow = IntPtr.Zero, WindowName = "Neutronium Chromium Dev Tools", X = 200, Y = 200, Width = 800, Height = 600 }; _DebugCfxClient = new CfxClient(); _DebugCfxClient.GetLifeSpanHandler += DebugClient_GetLifeSpanHandler; if (handler != null) { _DebugCfxClient.GetLoadHandler += handler; } _ChromiumWebBrowser.BrowserHost.ShowDevTools(cfxWindowInfo, _DebugCfxClient, new CfxBrowserSettings(), null); }