protected void OnDocumentComplete(object ppDisp, object url) { EventHandler <DocumentCompleteEventArgs> h = DocumentComplete; var args = new DocumentCompleteEventArgs(ppDisp, url); if (null != h) { h(this, args); } //Pass the ppDisp chosen back out to the events ppDisp = args.WebBrowser2; }
/* void O2BrowserIE_Navigating(object sender, WebBrowserNavigatingEventArgs e) { // PublicDI.log.info("Navigating: {0} ({1}", e.Url, e.TargetFrameName); //throw new NotImplementedException(); } void O2BrowserIE_Navigated(object sender, WebBrowserNavigatedEventArgs e) { // PublicDI.log.info("Navigated: {0}", e.Url); }*/ void O2BrowserIE_DocumentComplete(object sender, DocumentCompleteEventArgs e) { if (DebugMode) PublicDI.log.debug("in O2BrowserIE_DocumentComplete for:{0}", e.Url); ////var uri = (Uri) e.Url; try { HtmlPage = new IE_HtmlPage(e.DocumentClass); documentCompleted.Set(); if (onDocumentCompleted != null) onDocumentCompleted(HtmlPage); } catch (Exception ex) { PublicDI.log.ex(ex,"O2BrowserIE_DocumentComplete:", true); documentCompleted.Set(); } }
/* void O2BrowserIE_Navigating(object sender, WebBrowserNavigatingEventArgs e) * { * // PublicDI.log.info("Navigating: {0} ({1}", e.Url, e.TargetFrameName); * //throw new NotImplementedException(); * } * * void O2BrowserIE_Navigated(object sender, WebBrowserNavigatedEventArgs e) * { * // PublicDI.log.info("Navigated: {0}", e.Url); * }*/ void O2BrowserIE_DocumentComplete(object sender, DocumentCompleteEventArgs e) { if (DebugMode) { PublicDI.log.debug("in O2BrowserIE_DocumentComplete for:{0}", e.Url); } ////var uri = (Uri) e.Url; try { HtmlPage = new IE_HtmlPage(e.DocumentClass); documentCompleted.Set(); if (onDocumentCompleted != null) { onDocumentCompleted(HtmlPage); } } catch (Exception ex) { PublicDI.log.ex(ex, "O2BrowserIE_DocumentComplete:", true); documentCompleted.Set(); } }
protected void OnDocumentComplete(object ppDisp, object url) { EventHandler<DocumentCompleteEventArgs> h = DocumentComplete; var args = new DocumentCompleteEventArgs(ppDisp, url); if (null != h) { h(this, args); } //Pass the ppDisp chosen back out to the events ppDisp = args.WebBrowser2; }