示例#1
0
 // raise parsing done event
 private void MyHtmlParsingDoneEvent(object sender, HtmlParsingDoneEventArg e)
 {
     // call callback function
     if (m_HtmlParsingDoneEventHandler != null)
     {
         m_HtmlParsingDoneEventHandler(sender, e);
     }
     m_bParsed = true;  // set parsing flag to true
 }
示例#2
0
 void cparser_HtmlParsingDoneEvent(object sender, HtmlParsingDoneEventArg e)
 {
     this.richTextBox1.Text = "HtmlParsingDoneEvent\r\nURL: " + e.MSHTMDocument.url
         + "\r\n" + e.MSHTMDocument.body.outerHTML;
     //Clean up so we can use this object again
     cparser.StopParsing();
     toolStripButtonParse.Enabled = true;
     this.Cursor = Cursors.Default;
 }
示例#3
0
 int IPropertyNotifySink.OnChanged(int dispID)
 {
     if ((dispID == HTMLDispIDs.DISPID_READYSTATE) &&
         (m_pMSHTML != null) &&
         (m_pMSHTML.readyState.ToLower().Equals(COMPLETE)) &&
         (HtmlParsingDoneEvent != null))
     {
         m_Done = true;
         //Firing event to indicate the parsing is done
         HtmlParsingDoneEventArg arg = new HtmlParsingDoneEventArg(this.m_Url, this.m_ID, this.m_pMSHTML);
         HtmlParsingDoneEvent(this, arg);
     }
     return(Hresults.NOERROR);
 }
 // raise parsing done event        
 private void MyHtmlParsingDoneEvent(object sender, HtmlParsingDoneEventArg e)
 {
     // call callback function            
     if (m_HtmlParsingDoneEventHandler != null)            
     {
         m_HtmlParsingDoneEventHandler(sender, e);
     }
     m_bParsed = true;  // set parsing flag to true
 }
 int IPropertyNotifySink.OnChanged(int dispID)
 {
     if ((dispID == HTMLDispIDs.DISPID_READYSTATE) &&
         (m_pMSHTML != null) &&
         (m_pMSHTML.readyState.ToLower().Equals(COMPLETE)) &&
         (HtmlParsingDoneEvent != null))
     {
         m_Done = true;
         //Firing event to indicate the parsing is done
         HtmlParsingDoneEventArg arg = new HtmlParsingDoneEventArg(this.m_Url, this.m_ID, this.m_pMSHTML);
         HtmlParsingDoneEvent(this, arg);
     }
     return Hresults.NOERROR;
 }