Пример #1
0
 protected internal virtual void OnClosing(BrowserClosingEventArgs e)
 {
     var handler = Closing;
     if (handler != null) {
         handler(this, e);
     }
 }
Пример #2
0
 private int OnDoClose(IntPtr self, IntPtr browser)
 {
     var b = Browser.FromHandle(browser);
     var e = new BrowserClosingEventArgs(b);
     _delegate.OnClosing(e);
     return e.IsCanceled ? 1 : 0;
 }