Exemplo n.º 1
0
        protected override void HandleApplicationClosing()
        {
            base.HandleApplicationClosing();

            if (!_appInfo.AutoRun && (!ConfigurationManager.SaveConfiguration(PdfReducerGlobals.GetApplicationConfigurationFilePath(), FrameworkGlobals.ApplicationConfiguration) ||
                                      !ConfigurationManager.SaveConfiguration(PdfReducerGlobals.GetReduceActionConfigurationFilePath(), PdfReducerGlobals.ReduceActionConfiguration)))
            {
                _view.ShowErrorMessage(FrameworkGlobals.MessagesLocalizer.GetString("saveConfigurationFailure", FrameworkGlobals.ApplicationLanguage), FrameworkGlobals.MessagesLocalizer.GetString("saveConfigurationFailureTitle", FrameworkGlobals.ApplicationLanguage));
            }
        }
Exemplo n.º 2
0
 public PDFReducerController(bool autoRun, string[] args) : base(
         new PassportPDFDesktopAppInformation(
             PdfReducerGlobals.PRODUCT_NAME, PdfReducerGlobals.PASSPORT_PDF_APP_ID, PdfReducerGlobals.SOURCE_CODE_URL,
             AssemblyUtilities.GetVersion(), Icon.ExtractAssociatedIcon(Assembly.GetExecutingAssembly().Location),
             Properties.Resources.pdf_reducer_cloud_final_logo, PdfReducerGlobals.INPUT_FILE_TYPE, PdfReducerGlobals.GetApplicationConfigurationFilePath(), autoRun, args))
 {
 }