Esempio n. 1
0
 private int OnBeforePopup(IntPtr self, IntPtr parentbrowser, IntPtr popupfeatures, IntPtr windowinfo, IntPtr url,
                           IntPtr client, IntPtr settings)
 {
     var e = new PopupCreatingEventArgs {
         Parent = Browser.FromHandle(parentbrowser),
         Info = WindowsWindowInfo.FromHandle(windowinfo),
         Settings = BrowserSettings.FromHandle(settings),
         Address = StringUtf16.ReadString(url)
     };
     _delegate.OnPopupCreating(e);
     return e.IsCanceled ? 1 : 0;
 }
Esempio n. 2
0
 protected internal virtual void OnPopupCreating(PopupCreatingEventArgs e)
 {
     var handler = PopupCreating;
     if (handler != null) {
         handler(this, e);
     }
 }