예제 #1
0
 public void PerformBatchScan(BatchSettings settings, FormBase batchForm, Action<ScannedImage> imageCallback, Func<string, bool> progressCallback)
 {
     var state = new BatchState(scanPerformer, profileManager, fileNamePlaceholders, pdfExporter, operationFactory, pdfSettingsContainer, userConfigManager, formFactory)
     {
         Settings = settings,
         ProgressCallback = progressCallback,
         BatchForm = batchForm,
         LoadImageCallback = imageCallback
     };
     state.Do();
 }
예제 #2
0
        public void PerformBatchScan(BatchSettings settings, FormBase batchForm, Action <ScannedImage> imageCallback, Func <string, bool> progressCallback)
        {
            var state = new BatchState(scanPerformer, profileManager, fileNamePlaceholders, pdfExporter, operationFactory, pdfSettingsContainer, ocrDependencyManager, formFactory)
            {
                Settings          = settings,
                ProgressCallback  = progressCallback,
                BatchForm         = batchForm,
                LoadImageCallback = imageCallback
            };

            state.Do();
        }
예제 #3
0
 public async Task PerformBatchScan(BatchSettings settings, FormBase batchForm, Action <ScannedImage> imageCallback, Action <string> progressCallback, CancellationToken cancelToken)
 {
     var state = new BatchState(scanPerformer, profileManager, fileNamePlaceholders, pdfExporter, operationFactory, pdfSettingsContainer, ocrManager, formFactory)
     {
         Settings          = settings,
         ProgressCallback  = progressCallback,
         CancelToken       = cancelToken,
         BatchForm         = batchForm,
         LoadImageCallback = imageCallback
     };
     await state.Do();
 }