Beispiel #1
0
// ReSharper disable MemberCanBePrivate.Local
        protected void OnBeforeNavigate(string address, string frame, out bool cancel)
// ReSharper restore MemberCanBePrivate.Local
        {
            var h    = BeforeNavigate;
            var args = new WebBrowserExtendedNavigatingEventArgs(address, frame);

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

            cancel = args.Cancel;
        }
Beispiel #2
0
#pragma warning disable 628
        protected void OnBeforeNewWindow(string address, out bool cancel)
#pragma warning restore 628
        {
            var h    = BeforeNewWindow;
            var args = new WebBrowserExtendedNavigatingEventArgs(address, null);

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

            cancel = args.Cancel;
        }