public void SetKeyringPath(string strPublicPath, string strSecretPath) { if (pkrKeyRing == null) { pkrKeyRing = new SharpPrivacyLib.PublicKeyRing(); } if (skrKeyRing == null) { skrKeyRing = new SharpPrivacyLib.SecretKeyRing(); } if (strPublicKeyringPath.ToUpper() != strPublicPath.ToUpper()) { pkrKeyRing.Load(strPublicPath); strPublicKeyringPath = strPublicPath; } if (strSecretKeyringPath.ToLower() != strSecretPath.ToUpper()) { skrKeyRing.Load(strSecretPath); strSecretKeyringPath = strSecretPath; } }
public void SetKeyringPath(string strPublicPath, string strSecretPath) { if (pkrKeyRing == null) pkrKeyRing = new SharpPrivacyLib.PublicKeyRing(); if (skrKeyRing == null) skrKeyRing = new SharpPrivacyLib.SecretKeyRing(); if (strPublicKeyringPath.ToUpper() != strPublicPath.ToUpper()) { pkrKeyRing.Load(strPublicPath); strPublicKeyringPath = strPublicPath; } if (strSecretKeyringPath.ToLower() != strSecretPath.ToUpper()) { skrKeyRing.Load(strSecretPath); strSecretKeyringPath = strSecretPath; } }