Exemple #1
0
        protected void OnBeforeNewWindow(string url, out bool cancel)
        {
            EventHandler h = BeforeNewWindow;
            WebBrowserExtendedNavigatingEventArgs args = new WebBrowserExtendedNavigatingEventArgs(url, null);

            if (null != h)
            {
                h(this, args);
            }
            cancel = args.Cancel;
        }
Exemple #2
0
        protected void OnBeforeNavigate(string url, string frame, out bool cancel)
        {
            EventHandler h = BeforeNavigate;
            WebBrowserExtendedNavigatingEventArgs args = new WebBrowserExtendedNavigatingEventArgs(url, frame);

            if (null != h)
            {
                h(this, args);
            }

            cancel = args.Cancel;
        }