Provides data for the WebKitBrowser.ShowJavaScriptAlertPanel event.
Inheritance: System.EventArgs
Ejemplo n.º 1
0
 int uiDelegate_RunJavaScriptPromptBeforeUnload(WebView sender, string message)
 {
     ShowJavaScriptPromptBeforeUnloadEventArgs args = new ShowJavaScriptPromptBeforeUnloadEventArgs(message);
     ShowJavaScriptPromptBeforeUnload(this, args);
     return Convert.ToInt32(args.ReturnValue);
 }
Ejemplo n.º 2
0
 private void webKitBrowser1_ShowJavaScriptPromptBeforeUnload(object sender, ShowJavaScriptPromptBeforeUnloadEventArgs e)
 {
     if (MessageBox.Show(e.Message, "OpenWebKitSharp Example", MessageBoxButtons.YesNoCancel) == System.Windows.Forms.DialogResult.Yes)
     {
         e.ReturnValue = true;
     }
     else
     {
         e.ReturnValue = false;
     }
 }