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); }
public override void FinishedLaunching(NSObject notification) { AppController.Initialize(); mainWindowController = new MainWindowController(); mainWindowController.ShowWindow(this); if (openFile != null) { mainWindowController.Window.Miniaturize(this); } else { if (VersionInformationWindowController.ShouldShowVersionInformation) { VersionInformationWindowController versionInfo = new VersionInformationWindowController(); versionInfo.ShowWindow(this); } } }
partial void decrypt(NSObject sender) { AppController.DecryptAndOpenFile(new ProgressContext(), AppController.OperationFailureHandler); }
partial void encrypt(NSObject sender) { AppController.EncryptFile(new ProgressContext(), AppController.OperationFailureHandler); }
partial void onlineHelp(NSObject sender) { AppController.OnlineHelp(); }
partial void about(NSObject sender) { AppController.About(sender); }