Exemplo n.º 1
0
 protected void OnBeforeNewWindow(string url, out bool cancel)
 {
     EventHandler<WebBrowserExtendedNavigatingEventArgs> h = BeforeNewWindow;
     var args = new WebBrowserExtendedNavigatingEventArgs(url, null);
     if (null != h)
     {
         h(this, args);
     }
     cancel = args.Cancel;
 }
Exemplo n.º 2
0
        protected void OnBeforeNewWindow(string url, out bool cancel)
        {
            EventHandler <WebBrowserExtendedNavigatingEventArgs> h = BeforeNewWindow;
            var args = new WebBrowserExtendedNavigatingEventArgs(url, null);

            if (null != h)
            {
                h(this, args);
            }
            cancel = args.Cancel;
        }
Exemplo n.º 3
0
 protected void OnBeforeNavigate(string url, string frame, out bool cancel)
 {
     EventHandler<WebBrowserExtendedNavigatingEventArgs> h = BeforeNavigate;
     var args = new WebBrowserExtendedNavigatingEventArgs(url, frame);
     if (null != h)
     {
         h(this, args);
     }
     //Pass the cancellation chosen back out to the events
     cancel = args.Cancel;
 }
Exemplo n.º 4
0
        protected void OnBeforeNavigate(string url, string frame, out bool cancel)
        {
            EventHandler <WebBrowserExtendedNavigatingEventArgs> h = BeforeNavigate;
            var args = new WebBrowserExtendedNavigatingEventArgs(url, frame);

            if (null != h)
            {
                h(this, args);
            }
            //Pass the cancellation chosen back out to the events
            cancel = args.Cancel;
        }