コード例 #1
0
        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;
        }
コード例 #2
0
        /* 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();
            }
        }
コード例 #3
0
ファイル: ExtendedWebBrowser.cs プロジェクト: pusp/o2platform
 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;
 }
コード例 #4
0
ファイル: O2BrowserIE.cs プロジェクト: pusp/o2platform
        /* 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();
            }
        }