Beispiel #1
0
        protected override void OnOperationsCompletion()
        {
            base.OnOperationsCompletion();

            string elapsedTime = ParsingUtils.GetElapsedTimeString(_stopwatch.Elapsed);

            _view.NotifyOperationsResult(LogMessagesUtils.GetReductionWorkCompletionText(_operationsStats.ProcessedFileCount, _operationsStats.SuccesfullyProcessedFileCount, _operationsStats.UnsuccessfullyProcessedFileCount, _operationsStats.TotalInputSize, _operationsStats.TotalOutputSize, elapsedTime));

            string detailedWorkCompletionMessage = LogMessagesUtils.GetDetailedReductionWorkCompletionText(_operationsStats.ProcessedFileCount, _operationsStats.SuccesfullyProcessedFileCount, _operationsStats.UnsuccessfullyProcessedFileCount, _operationsStats.FileConvertedToPDFCount, _operationsStats.TotalInputSize, _operationsStats.TotalOutputSize, elapsedTime);

            if (!_appInfo.AutoRun)
            {
                _view.ShowInformationMessage(detailedWorkCompletionMessage, FrameworkGlobals.MessagesLocalizer.GetString("processTerminated", FrameworkGlobals.ApplicationLanguage));
                _view.UnlockView();
            }
            else
            {
                Console.Write(detailedWorkCompletionMessage);
                _view.ExitApplication();
            }
        }