private void _htmlScreenCapture_HtmlDocumentAvailable(object sender, HtmlDocumentAvailableEventArgsCore e)
 {
     if (HtmlDocumentAvailable != null)
     {
         HtmlDocumentAvailableEventArgs ea = new HtmlDocumentAvailableEventArgs(e.Document);
         HtmlDocumentAvailable(this, ea);
         e.DocumentReady = ea.DocumentReady;
     }
 }
 private void _htmlScreenCapture_HtmlDocumentAvailable(object sender, HtmlDocumentAvailableEventArgsCore e)
 {
     if (HtmlDocumentAvailable != null)
     {
         HtmlDocumentAvailableEventArgs ea = new HtmlDocumentAvailableEventArgs(e.Document);
         HtmlDocumentAvailable(this, ea);
         e.DocumentReady = ea.DocumentReady;
     }
 }
 private static void screenCapture_HtmlDocumentAvailable(object sender, OpenLiveWriter.Api.HtmlDocumentAvailableEventArgs e)
 {
     IHTMLDocument3 document = (IHTMLDocument3)e.Document;
     IHTMLElement mapElement = document.getElementById("map");
     if (mapElement == null || mapElement.getAttribute("loaded", 2) == System.DBNull.Value)
         e.DocumentReady = false;
     else
         e.DocumentReady = true;
 }