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

                this.parent.OnWindowClosing(e);
                Cancel = e.Cancel;
            }