private void OnScriptNotify(object sender, ScriptNotifyEventArgs e) { this.Response = JSNotifyRequestSecurityTokenResponse.FromJson(e.Data); this.DialogResult = true; this.Close(); }