protected void Browser_BrowserObjectAppeared(object sender, BrowserObjectAppearedEventArgs e) { if (BrowserObjectAppeared != null) { BrowserObjectAppeared(sender, e); } }
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; } }
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); } }