Esempio n. 1
0
            public void NewWindow2(ref object ppDisp, ref bool Cancel)
            {
                ExWebBrowserNewWindow2EventArgs args = new ExWebBrowserNewWindow2EventArgs(ppDisp);

                _Browser.OnNewWindow2(args);
                Cancel = args.Cancel;
                ppDisp = args.ActiveXInstance;
            }
Esempio n. 2
0
        /// <summary>
        /// Raises the <see cref="StartNewWindow"/> event
        /// </summary>
        /// <exception cref="ArgumentNullException">Thrown when BrowserExtendedNavigatingEventArgs is null</exception>
        protected void OnNewWindow2(ExWebBrowserNewWindow2EventArgs e)
        {
            if (e == null)
            {
                throw new ArgumentNullException("e");
            }

            NewWindow2?.Invoke(this, e);
        }