protected override bool OnApply() { if (base.Dirty && !this._encryptionKey_PropertiesControl.CanApplyChanges()) { return(false); } if (this._encryptionKey_PropertiesControl.CanApplyChanges() && this._scopeNodeAction == "Import") { string encryptionKey; this._encryptionKey_PropertiesControl.GetKeyValue(out encryptionKey); bool flag = SSOHelper.ImportSSOApplication(encryptionKey, this.ApplicationFileName, this.EncryptedText); if (this.EncryptionKeyEnteredForImport != null) { EventArgs <bool, string> e = new EventArgs <bool, string>(flag, this._scopeNodeAction); this.EncryptionKeyEnteredForImport(this, e); } return(flag); } if (this._encryptionKey_PropertiesControl.CanApplyChanges() && this._scopeNodeAction == "Export") { string encryptionKey2; this._encryptionKey_PropertiesControl.GetKeyValue(out encryptionKey2); this.EncryptionKey = encryptionKey2; } return(true); }