protected void OnStartNewWindow(BrowserExtendedNavigatingEventArgs e)
 {
     if (e == null)
     {
         throw new ArgumentNullException("e");
     }
     if (this._StartNewWindow != null)
     {
         this._StartNewWindow(this, e);
     }
 }
        private void _browser_StartNavigate(object sender, BrowserExtendedNavigatingEventArgs ev)
        {
            ExtendedTenDayBrowser TenDayBrowser = sender as ExtendedTenDayBrowser;

            if (!string.IsNullOrEmpty(TenDayBrowser.Referer))
            {
                LoadTempHtml.SetIEConnectionMode(true);
            }
            IEItem iEItem = this.GetIEItem(TenDayBrowser);

            if (iEItem != null)
            {
                iEItem.SetDocCompleted(false);
            }
        }
 public void BeforeNavigate2(object pDisp, ref object URL, ref object flags, ref object targetFrameName, ref object postData, ref object headers, ref bool cancel)
 {
     try
     {
         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;
     }
     catch
     {
     }
 }
 private void _browser_StartNewWindow(object sender, BrowserExtendedNavigatingEventArgs ev)
 {
     try
     {
         if ((ev.NavigationContext & UrlContext.HtmlDialog) != UrlContext.HtmlDialog)
         {
             IEItem iEItem = this.GetIEItem(sender as ExtendedTenDayBrowser);
             ExtendedTenDayBrowser browser = this.New(false, null);
             if (iEItem != null)
             {
                 iEItem.AddBrowser(browser);
             }
             iEItem = null;
             ev.AutomationObject = browser.Application;
         }
     }
     catch (Exception)
     {
     }
 }
Beispiel #5
0
 private void _browser_StartNewWindow(object sender, BrowserExtendedNavigatingEventArgs ev)
 {
     try
     {
         if ((ev.NavigationContext & UrlContext.HtmlDialog) != UrlContext.HtmlDialog)
         {
             IEItem iEItem = this.GetIEItem(sender as ExtendedTenDayBrowser);
             ExtendedTenDayBrowser browser = this.New(false, null);
             if (iEItem != null)
             {
                 iEItem.AddBrowser(browser);
             }
             iEItem = null;
             ev.AutomationObject = browser.Application;
         }
     }
     catch (Exception)
     {
     }
 }
Beispiel #6
0
 private void _browser_StartNavigate(object sender, BrowserExtendedNavigatingEventArgs ev)
 {
     ExtendedTenDayBrowser TenDayBrowser = sender as ExtendedTenDayBrowser;
     if (!string.IsNullOrEmpty(TenDayBrowser.Referer))
     {
         LoadTempHtml.SetIEConnectionMode(true);
     }
     IEItem iEItem = this.GetIEItem(TenDayBrowser);
     if (iEItem != null)
     {
         iEItem.SetDocCompleted(false);
     }
 }
 public void NewWindow3(ref object ppDisp, ref bool Cancel, uint dwFlags, string bstrUrlContext, string bstrUrl)
 {
     BrowserExtendedNavigatingEventArgs e = new BrowserExtendedNavigatingEventArgs(ppDisp, new Uri(bstrUrl), null, (UrlContext)dwFlags);
     this._Browser.OnStartNewWindow(e);
     Cancel = e.Cancel;
     ppDisp = e.AutomationObject;
 }
 public void NewWindow2(ref object pDisp, ref bool cancel)
 {
     BrowserExtendedNavigatingEventArgs e = new BrowserExtendedNavigatingEventArgs(pDisp, null, null, UrlContext.None);
     this._Browser.OnStartNewWindow(e);
     cancel = e.Cancel;
     pDisp = e.AutomationObject;
 }
 public void BeforeNavigate2(object pDisp, ref object URL, ref object flags, ref object targetFrameName, ref object postData, ref object headers, ref bool cancel)
 {
     try
     {
         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;
     }
     catch
     {
     }
 }
 protected void OnStartNewWindow(BrowserExtendedNavigatingEventArgs e)
 {
     if (e == null)
     {
         throw new ArgumentNullException("e");
     }
     if (this._StartNewWindow != null)
     {
         this._StartNewWindow(this, e);
     }
 }