Пример #1
0
 public override void OpenFiles(NSApplication sender, string[] filenames)
 {
     openFile = new OpenFileFromFinderController();
     openFile.UserChoseOpen += (string passphrase) => {
         AppController.DecryptAndOpenFile(
             OS.Current.FileInfo(filenames[0]),
             new Passphrase(passphrase),
             new ProgressContext(),
             AppController.OperationFailureHandler);
         ReleaseOpenFileController();
     };
     openFile.UserChoseCancel += () => {
         ReleaseOpenFileController();
     };
     openFile.ShowWindow(sender);
 }
Пример #2
0
 partial void decrypt(NSObject sender)
 {
     AppController.DecryptAndOpenFile(new ProgressContext(), AppController.OperationFailureHandler);
 }