Пример #1
0
 public ScriptAlertEventArgs(string message, string defaultValue, string url, ScriptAlertFlags flags, bool success, string value)
 {
     Message = message;
     DefaultValue = defaultValue;
     Url = url;
     Flags = flags;
     Success = success;
     Value = value;
 }
Пример #2
0
 private void WebKit_ScriptAlert(Window source, string message, string defaultValue, string url, ScriptAlertFlags flags, ref bool success, ref string value)
 {
     if (ScriptAlert != null) {
         var args = new ScriptAlertEventArgs(message, defaultValue, url, flags, success, value);
         ScriptAlert(this, args);
         success = args.Success;
         value = args.Value;
     }
 }