Exemple #1
0
 private void InitialTabBrowser_BeforeNewWindow(object sender, WebBrowserExtendedNavigatingEventArgs e)
 {
     e.Cancel   = false;
     urlTB.Text = e.Url;
     FileLogger.Instance.LogInfo("Cookies BeforeNewWindow:" + ((ExtendedWebBrowser)sender).Document.Cookie);
     ((ExtendedWebBrowser)sender).Navigate(e.Url, true);
 }
        protected void OnBeforeNewWindow(string url, out bool cancel)
        {
            EventHandler <WebBrowserExtendedNavigatingEventArgs> h = BeforeNewWindow;
            WebBrowserExtendedNavigatingEventArgs args             = new WebBrowserExtendedNavigatingEventArgs(url, null);

            if (null != h)
            {
                h(this, args);
            }
            cancel = args.Cancel;
        }
        protected void OnBeforeNavigate(string url, string frame, out bool cancel)
        {
            EventHandler <WebBrowserExtendedNavigatingEventArgs> h = BeforeNavigateHandle;
            WebBrowserExtendedNavigatingEventArgs args             = new WebBrowserExtendedNavigatingEventArgs(url, frame);

            if (null != h)
            {
                h(this, args);
            }
            //Pass the cancellation chosen back out to the events
            cancel = args.Cancel;
        }
 private void InitialTabBrowser_BeforeNewWindow(object sender, WebBrowserExtendedNavigatingEventArgs e)
 {
     e.Cancel = false;
     urlTB.Text = e.Url;
     FileLogger.Instance.LogInfo("Cookies BeforeNewWindow:" + ((ExtendedWebBrowser)sender).Document.Cookie);
     ((ExtendedWebBrowser)sender).Navigate(e.Url, true);
 }
 protected void OnBeforeNewWindow(string url, out bool cancel)
 {
     EventHandler<WebBrowserExtendedNavigatingEventArgs> h = BeforeNewWindow;
     WebBrowserExtendedNavigatingEventArgs args = new WebBrowserExtendedNavigatingEventArgs(url, null);
     if (null != h)
     {
     h(this, args);
     }
     cancel = args.Cancel;
 }
 protected void OnBeforeNavigate(string url, string frame, out bool cancel)
 {
     EventHandler<WebBrowserExtendedNavigatingEventArgs> h = BeforeNavigateHandle;
     WebBrowserExtendedNavigatingEventArgs args = new WebBrowserExtendedNavigatingEventArgs(url, frame);
     if (null != h)
     {
     h(this, args);
     }
     //Pass the cancellation chosen back out to the events
     cancel = args.Cancel;
 }