Пример #1
0
 /// <summary>
 /// Handles getting of encryption keys when required.
 /// </summary>
 /// <param name="fileName">The file for which encryption keys are required.</param>
 void OnKeysRequired(string fileName)
 {
     if (KeysRequired != null) {
         KeysRequiredEventArgs krea = new KeysRequiredEventArgs(fileName, key);
         KeysRequired(this, krea);
         key = krea.Key;
     }
 }
Пример #2
0
 private void OnKeysRequired(string fileName)
 {
     if (KeysRequired != null)
     {
         var e = new KeysRequiredEventArgs(fileName, _key);
         KeysRequired(this, e);
         _key = e.Key;
     }
 }