/// <summary> /// .Net Bug,此事件不会被引发。 /// </summary> /// <param name="e"></param> protected virtual void OnWindowClosing(WebBrowserWindowClosingEventArgs e) { if (WindowClosing != null) { WindowClosing(this, e); } }
public void WindowClosing(bool IsChildWindow, ref bool Cancel) { WebBrowserWindowClosingEventArgs e = new WebBrowserWindowClosingEventArgs(IsChildWindow, Cancel); this.parent.OnWindowClosing(e); Cancel = e.Cancel; }