/// <summary> /// Shows an dialog that allows the user to export an cryptographic key. /// </summary> /// <param name="node"> /// The <see cref="ConfigurationNode"/> of which an cryptographic key should be exported. /// </param> protected override void ExecuteCore(ConfigurationNode node) { ICryptographicKeyConfigurationNode cryptographicNode = node as ICryptographicKeyConfigurationNode; if (cryptographicNode != null) { ExportKeyUI exportKeyDialog = new ExportKeyUI(cryptographicNode.KeySettings.ProtectedKey); exportKeyDialog.ShowDialog(); } }
protected override void InnerExecute(object parameter) { var key = keyProperty.KeySettings; KeyManagerUtilities.ImportProtectedKey(uiService, key); using (var exportKeyUI = new ExportKeyUI(key.ProtectedKey)) { uiService.ShowDialog(exportKeyUI); } }