예제 #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);
 }