示例#1
0
 protected void Browser_BrowserObjectAppeared(object sender, BrowserObjectAppearedEventArgs e)
 {
     if (BrowserObjectAppeared != null)
     {
         BrowserObjectAppeared(sender, e);
     }
 }
示例#2
0
 void browser_BrowserObjectAppeared(object sender, BrowserObjectAppearedEventArgs e)
 {
     lock (cache)
     {
         if (!cache.Contains(sender as MCSWebBrowser))
         {
             cache.Add(sender as MCSWebBrowser);
         }
         (sender as MCSWebBrowser).BrowserObjectAppeared -= browser_BrowserObjectAppeared;
     }
 }
示例#3
0
 public void BrowserObjectAppeared(IWebBrowser2 ie, bool isPopup, int pId)
 {
     try
     {
         Delegate handler = this.GetHandler(WebBrowserEvent.BrowserObjectAppeared);
         if (handler != null)
         {
             BrowserObjectAppearedEventArgs e = new BrowserObjectAppearedEventArgs();
             e._IE      = ie;
             e._IsPopup = isPopup;
             e._pId     = pId;
             this.Raise(handler, e);
         }
     }
     catch (Exception ex) { Trace.WriteLine("BrowserObjectAppeared exception: " + ex.Message + "\r\n" + ex.StackTrace); }
 }