Exemplo n.º 1
0
 protected void OnStartNewWindow(BrowserExtendedNavigatingEventArgs e)
 {
     if (e == null)
     {
         throw new ArgumentNullException("e");
     }
     if (this.StartNewWindow != null)
     {
         this.StartNewWindow(this, e);
     }
 }
Exemplo n.º 2
0
            public void BeforeNavigate2(object pDisp, ref object URL, ref object flags, ref object targetFrameName, ref object postData, ref object headers, ref bool cancel)
            {
                Uri    url   = new Uri(URL.ToString());
                string frame = null;

                if (targetFrameName != null)
                {
                    frame = targetFrameName.ToString();
                }
                BrowserExtendedNavigatingEventArgs e = new BrowserExtendedNavigatingEventArgs(pDisp, url, frame, UrlContext.None);

                this._Browser.OnStartNavigate(e);
                cancel = e.Cancel;
                pDisp  = e.AutomationObject;
            }