예제 #1
0
 public void Load()
 {
     if (!Initialized)
     {
         keyEncryption.CreateNewKeyPair(this);
     }
 }
예제 #2
0
 public void Load()
 {
     if (Available)
     {
         using (var sr = File.OpenText(FileName))
         {
             keyEncryption.ImportFromXml(this, sr.ReadToEnd());
         }
     }
     else if (CreateIfNotExist)
     {
         keyEncryption.CreateNewKeyPair(this);
     }
 }