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); }
partial void decrypt(NSObject sender) { AppController.DecryptAndOpenFile(new ProgressContext(), AppController.OperationFailureHandler); }