/// <summary> /// Initializes a new instance of the WebKitBrowser control. /// </summary> public WebKitBrowser() { NewWindowCreated += delegate { }; NewWindowRequest += delegate { }; DownloadBegin += delegate { }; Error += delegate { }; Navigating += delegate { }; Navigated += delegate { }; DocumentCompleted += delegate { }; DocumentTitleChanged += delegate { }; ShowJavaScriptAlertPanel += delegate { }; ShowJavaScriptConfirmPanel += delegate { }; ShowJavaScriptPromptPanel += delegate { }; InitializeComponent(); core.Initialize(this); }
/// <summary> /// Initializes a new instance of the WebKitBrowser control. /// </summary> public WebKitBrowser(WebKitBrowserCore bCore) { core = bCore; NewWindowCreated += delegate { }; NewWindowRequest += delegate { }; DownloadBegin += delegate { }; Error += delegate { }; Navigating += delegate { }; Navigated += delegate { }; DocumentCompleted += delegate { }; DocumentTitleChanged += delegate { }; ShowJavaScriptAlertPanel += delegate { }; ShowJavaScriptConfirmPanel += delegate { }; ShowJavaScriptPromptPanel += delegate { }; InitializeComponent(); core.Initialize(this); }