예제 #1
0
        public FEditProfile(IScanDriverFactory driverFactory, IErrorOutput errorOutput, ProfileNameTracker profileNameTracker, AppConfigManager appConfigManager)
        {
            this.driverFactory      = driverFactory;
            this.errorOutput        = errorOutput;
            this.profileNameTracker = profileNameTracker;
            this.appConfigManager   = appConfigManager;
            InitializeComponent();
            btnNetwork.Left = btnChooseDevice.Right + 6;
            // TODO: Remove this to reenable
            btnNetwork.Visible = false;

            AddEnumItems <ScanHorizontalAlign>(cmbAlign);
            AddEnumItems <ScanBitDepth>(cmbDepth);
            AddEnumItems <ScanDpi>(cmbResolution);
            AddEnumItems <ScanScale>(cmbScale);
            AddEnumItems <ScanSource>(cmbSource);
            cmbPage.Format += (sender, e) =>
            {
                var item = (PageSizeListItem)e.ListItem;
                e.Value = item.Label;
            };

            rdWIA.Visible   = PlatformCompat.System.IsWiaDriverSupported;
            rdTWAIN.Visible = PlatformCompat.System.IsTwainDriverSupported;
            rdSANE.Visible  = PlatformCompat.System.IsSaneDriverSupported;
        }
예제 #2
0
        public FDesktop(IEmailer emailer, ImageSaver imageSaver, StringWrapper stringWrapper, AppConfigManager appConfigManager, RecoveryManager recoveryManager, IScannedImageImporter scannedImageImporter, AutoUpdaterUI autoUpdaterUI, OcrDependencyManager ocrDependencyManager, IProfileManager profileManager, IScanPerformer scanPerformer, IScannedImagePrinter scannedImagePrinter, ChangeTracker changeTracker, EmailSettingsContainer emailSettingsContainer, FileNamePlaceholders fileNamePlaceholders, ImageSettingsContainer imageSettingsContainer, PdfSettingsContainer pdfSettingsContainer, PdfSaver pdfSaver, IErrorOutput errorOutput)
        {
            this.emailer                = emailer;
            this.imageSaver             = imageSaver;
            this.stringWrapper          = stringWrapper;
            this.appConfigManager       = appConfigManager;
            this.recoveryManager        = recoveryManager;
            this.scannedImageImporter   = scannedImageImporter;
            this.autoUpdaterUI          = autoUpdaterUI;
            this.ocrDependencyManager   = ocrDependencyManager;
            this.profileManager         = profileManager;
            this.scanPerformer          = scanPerformer;
            this.scannedImagePrinter    = scannedImagePrinter;
            this.changeTracker          = changeTracker;
            this.emailSettingsContainer = emailSettingsContainer;
            this.fileNamePlaceholders   = fileNamePlaceholders;
            this.imageSettingsContainer = imageSettingsContainer;
            this.pdfSettingsContainer   = pdfSettingsContainer;
            this.pdfSaver               = pdfSaver;
            this.errorOutput            = errorOutput;
            InitializeComponent();

            thumbnailList1.MouseWheel += thumbnailList1_MouseWheel;
            Shown       += FDesktop_Shown;
            FormClosing += FDesktop_FormClosing;
            Closed      += FDesktop_Closed;
        }
예제 #3
0
 public ImageSaver(IErrorOutput errorOutput, FileNamePlaceholders fileNamePlaceholders, ImageSettingsContainer imageSettingsContainer, IOverwritePrompt overwritePrompt)
 {
     this.errorOutput            = errorOutput;
     this.fileNamePlaceholders   = fileNamePlaceholders;
     this.imageSettingsContainer = imageSettingsContainer;
     this.overwritePrompt        = overwritePrompt;
 }
예제 #4
0
파일: PdfSaver.cs 프로젝트: rprenhol/naps2
 public PdfSaver(IErrorOutput errorOutput, FileNamePlaceholders fileNamePlaceholders, IPdfExporter pdfExporter, IOverwritePrompt overwritePrompt)
 {
     this.errorOutput = errorOutput;
     this.fileNamePlaceholders = fileNamePlaceholders;
     this.pdfExporter = pdfExporter;
     this.overwritePrompt = overwritePrompt;
 }
예제 #5
0
 public PdfSaver(IErrorOutput errorOutput, FileNamePlaceholders fileNamePlaceholders, IPdfExporter pdfExporter, IOverwritePrompt overwritePrompt)
 {
     this.errorOutput          = errorOutput;
     this.fileNamePlaceholders = fileNamePlaceholders;
     this.pdfExporter          = pdfExporter;
     this.overwritePrompt      = overwritePrompt;
 }
예제 #6
0
 public ImageSaver(IErrorOutput errorOutput, FileNamePlaceholders fileNamePlaceholders, ImageSettingsContainer imageSettingsContainer, IOverwritePrompt overwritePrompt)
 {
     this.errorOutput = errorOutput;
     this.fileNamePlaceholders = fileNamePlaceholders;
     this.imageSettingsContainer = imageSettingsContainer;
     this.overwritePrompt = overwritePrompt;
 }
예제 #7
0
파일: FProgress.cs 프로젝트: cyanfish/naps2
        public FProgress(IErrorOutput errorOutput)
        {
            this.errorOutput = errorOutput;
            InitializeComponent();

            RestoreFormState = false;
        }
예제 #8
0
 public PrMain(IVMain view, IModel model)
 {
     View              = view;
     Model             = model;
     DatabaseGenerator = new DbFileGenerator();
     ErrHandler        = new ErrorOutput();
 }
예제 #9
0
 public ScanPerformer(IScanDriverFactory driverFactory, IErrorOutput errorOutput, IAutoSave autoSave, AppConfigManager appConfigManager)
 {
     this.driverFactory    = driverFactory;
     this.errorOutput      = errorOutput;
     this.autoSave         = autoSave;
     this.appConfigManager = appConfigManager;
 }
예제 #10
0
        public FProgress(IErrorOutput errorOutput)
        {
            this.errorOutput = errorOutput;
            InitializeComponent();

            RestoreFormState = false;
        }
예제 #11
0
 public ScanPerformer(IScanDriverFactory driverFactory, IErrorOutput errorOutput, IAutoSave autoSave, AppConfigManager appConfigManager)
 {
     this.driverFactory = driverFactory;
     this.errorOutput = errorOutput;
     this.autoSave = autoSave;
     this.appConfigManager = appConfigManager;
 }
예제 #12
0
        public FDesktop(IEmailer emailer, ImageSaver imageSaver, StringWrapper stringWrapper, AppConfigManager appConfigManager, RecoveryManager recoveryManager, IScannedImageImporter scannedImageImporter, AutoUpdaterUI autoUpdaterUI, OcrDependencyManager ocrDependencyManager, IProfileManager profileManager, IScanPerformer scanPerformer, IScannedImagePrinter scannedImagePrinter, ChangeTracker changeTracker, EmailSettingsContainer emailSettingsContainer, FileNamePlaceholders fileNamePlaceholders, ImageSettingsContainer imageSettingsContainer, PdfSettingsContainer pdfSettingsContainer, PdfSaver pdfSaver, IErrorOutput errorOutput)
        {
            this.emailer = emailer;
            this.imageSaver = imageSaver;
            this.stringWrapper = stringWrapper;
            this.appConfigManager = appConfigManager;
            this.recoveryManager = recoveryManager;
            this.scannedImageImporter = scannedImageImporter;
            this.autoUpdaterUI = autoUpdaterUI;
            this.ocrDependencyManager = ocrDependencyManager;
            this.profileManager = profileManager;
            this.scanPerformer = scanPerformer;
            this.scannedImagePrinter = scannedImagePrinter;
            this.changeTracker = changeTracker;
            this.emailSettingsContainer = emailSettingsContainer;
            this.fileNamePlaceholders = fileNamePlaceholders;
            this.imageSettingsContainer = imageSettingsContainer;
            this.pdfSettingsContainer = pdfSettingsContainer;
            this.pdfSaver = pdfSaver;
            this.errorOutput = errorOutput;
            InitializeComponent();

            thumbnailList1.MouseWheel += thumbnailList1_MouseWheel;
            Shown += FDesktop_Shown;
            FormClosing += FDesktop_FormClosing;
            Closed += FDesktop_Closed;
        }
예제 #13
0
 public MapIEmailProvider(IWorkerServiceFactory workerServiceFactory, MapiWrapper mapIWrapper, IErrorOutput errorOutput, IUserConfigManager userConfigManager)
 {
     this.workerServiceFactory = workerServiceFactory;
     this.mapIWrapper          = mapIWrapper;
     this.errorOutput          = errorOutput;
     this.userConfigManager    = userConfigManager;
 }
예제 #14
0
        public FProgress(IErrorOutput errorOutput, IOperationProgress operationProgress)
        {
            this.errorOutput       = errorOutput;
            this.operationProgress = operationProgress;
            InitializeComponent();

            RestoreFormState = false;
        }
예제 #15
0
 public PdfSharpImporter(IErrorOutput errorOutput, IPdfPasswordProvider pdfPasswordProvider, ThumbnailRenderer thumbnailRenderer, ScannedImageRenderer scannedImageRenderer, IPdfRenderer pdfRenderer)
 {
     this.errorOutput          = errorOutput;
     this.pdfPasswordProvider  = pdfPasswordProvider;
     this.thumbnailRenderer    = thumbnailRenderer;
     this.scannedImageRenderer = scannedImageRenderer;
     this.pdfRenderer          = pdfRenderer;
 }
예제 #16
0
 public PrAddRecord(IVAddRecord view, IVMain mainView, IModel model, IPrMain mainPresenter)
 {
     View          = view;
     MainView      = mainView;
     Model         = model;
     MainPresenter = mainPresenter;
     ErrHandler    = new ErrorOutput();
 }
예제 #17
0
        public GhostscriptPdfRenderer(IComponentInstallPrompt componentInstallPrompt, AppConfigManager appConfigManager, IErrorOutput errorOutput)
        {
            this.componentInstallPrompt = componentInstallPrompt;
            this.appConfigManager       = appConfigManager;
            this.errorOutput            = errorOutput;

            gsLibBytes = new Lazy <byte[]>(() => File.ReadAllBytes(Dependencies.GhostscriptComponent.Path));
            ExternalComponent.InitBasePath(appConfigManager);
        }
예제 #18
0
파일: ScanPerformer.cs 프로젝트: gas3/twain
 public ScanPerformer(IScanDriverFactory driverFactory, IErrorOutput errorOutput, IAutoSave autoSave, AppConfigManager appConfigManager, IProfileManager profileManager, ScannedImageHelper scannedImageHelper)
 {
     this.driverFactory      = driverFactory;
     this.errorOutput        = errorOutput;
     this.autoSave           = autoSave;
     this.appConfigManager   = appConfigManager;
     this.profileManager     = profileManager;
     this.scannedImageHelper = scannedImageHelper;
 }
        public GhostscriptPdfRenderer(IComponentInstallPrompt componentInstallPrompt, AppConfigManager appConfigManager, IErrorOutput errorOutput, GhostScriptManager ghostScriptManager)
        {
            this.componentInstallPrompt = componentInstallPrompt;
            this.appConfigManager       = appConfigManager;
            this.errorOutput            = errorOutput;
            this.ghostScriptManager     = ghostScriptManager;

            gsLibBytes = new Lazy <byte[]>(() => File.ReadAllBytes(ghostScriptManager.GhostScriptComponent.Path));
        }
예제 #20
0
 public AutoSave(IOperationFactory operationFactory, IFormFactory formFactory, PdfSettingsContainer pdfSettingsContainer, IUserConfigManager userConfigManager, IErrorOutput errorOutput, AppConfigManager appConfigManager, FileNamePlaceholders fileNamePlaceholders)
 {
     this.operationFactory     = operationFactory;
     this.formFactory          = formFactory;
     this.pdfSettingsContainer = pdfSettingsContainer;
     this.userConfigManager    = userConfigManager;
     this.errorOutput          = errorOutput;
     this.appConfigManager     = appConfigManager;
     this.fileNamePlaceholders = fileNamePlaceholders;
 }
예제 #21
0
파일: AutoSave.cs 프로젝트: cyanfish/naps2
 public AutoSave(IOperationFactory operationFactory, IFormFactory formFactory, PdfSettingsContainer pdfSettingsContainer, IUserConfigManager userConfigManager, IErrorOutput errorOutput, AppConfigManager appConfigManager, FileNamePlaceholders fileNamePlaceholders)
 {
     this.operationFactory = operationFactory;
     this.formFactory = formFactory;
     this.pdfSettingsContainer = pdfSettingsContainer;
     this.userConfigManager = userConfigManager;
     this.errorOutput = errorOutput;
     this.appConfigManager = appConfigManager;
     this.fileNamePlaceholders = fileNamePlaceholders;
 }
예제 #22
0
        public SaveImagesOperation(IErrorOutput errorOutput, FileNamePlaceholders fileNamePlaceholders, ImageSettingsContainer imageSettingsContainer, IOverwritePrompt overwritePrompt, ThreadFactory threadFactory)
        {
            this.errorOutput = errorOutput;
            this.fileNamePlaceholders = fileNamePlaceholders;
            this.imageSettingsContainer = imageSettingsContainer;
            this.overwritePrompt = overwritePrompt;
            this.threadFactory = threadFactory;

            ProgressTitle = MiscResources.SaveImagesProgress;
            AllowCancel = true;
        }
예제 #23
0
        public SaveImagesOperation(IErrorOutput errorOutput, FileNamePlaceholders fileNamePlaceholders, ImageSettingsContainer imageSettingsContainer, IOverwritePrompt overwritePrompt, ThreadFactory threadFactory)
        {
            this.errorOutput            = errorOutput;
            this.fileNamePlaceholders   = fileNamePlaceholders;
            this.imageSettingsContainer = imageSettingsContainer;
            this.overwritePrompt        = overwritePrompt;
            this.threadFactory          = threadFactory;

            ProgressTitle = MiscResources.SaveImagesProgress;
            AllowCancel   = true;
        }
예제 #24
0
 public AutoSave(IOperationFactory operationFactory, IFormFactory formFactory, PdfSettingsContainer pdfSettingsContainer, OcrDependencyManager ocrDependencyManager, IErrorOutput errorOutput, AppConfigManager appConfigManager, FileNamePlaceholders fileNamePlaceholders, DialogHelper dialogHelper)
 {
     this.operationFactory     = operationFactory;
     this.formFactory          = formFactory;
     this.pdfSettingsContainer = pdfSettingsContainer;
     this.ocrDependencyManager = ocrDependencyManager;
     this.errorOutput          = errorOutput;
     this.appConfigManager     = appConfigManager;
     this.fileNamePlaceholders = fileNamePlaceholders;
     this.dialogHelper         = dialogHelper;
 }
예제 #25
0
 public FEditScanSettings(IScanDriverFactory driverFactory, IErrorOutput errorOutput)
 {
     this.driverFactory = driverFactory;
     this.errorOutput   = errorOutput;
     InitializeComponent();
     AddEnumItems <ScanHorizontalAlign>(cmbAlign);
     AddEnumItems <ScanBitDepth>(cmbDepth);
     AddEnumItems <ScanPageSize>(cmbPage, FormatPageSize);
     AddEnumItems <ScanDpi>(cmbResolution);
     AddEnumItems <ScanScale>(cmbScale);
     AddEnumItems <ScanSource>(cmbSource);
 }
예제 #26
0
 public FEditScanSettings(IScanDriverFactory driverFactory, IErrorOutput errorOutput)
 {
     this.driverFactory = driverFactory;
     this.errorOutput = errorOutput;
     InitializeComponent();
     AddEnumItems<ScanHorizontalAlign>(cmbAlign);
     AddEnumItems<ScanBitDepth>(cmbDepth);
     AddEnumItems<ScanPageSize>(cmbPage, FormatPageSize);
     AddEnumItems<ScanDpi>(cmbResolution);
     AddEnumItems<ScanScale>(cmbScale);
     AddEnumItems<ScanSource>(cmbSource);
 }
예제 #27
0
파일: FBatchScan.cs 프로젝트: gas3/twain
        public FBatchScan(IProfileManager profileManager, AppConfigManager appConfigManager, IUserConfigManager userConfigManager, BatchScanPerformer batchScanPerformer, IErrorOutput errorOutput, DialogHelper dialogHelper)
        {
            this.profileManager     = profileManager;
            this.appConfigManager   = appConfigManager;
            this.userConfigManager  = userConfigManager;
            this.batchScanPerformer = batchScanPerformer;
            this.errorOutput        = errorOutput;
            this.dialogHelper       = dialogHelper;
            InitializeComponent();

            RestoreFormState = false;
        }
예제 #28
0
        public UpdateOperation(IErrorOutput errorOutput)
        {
            this.errorOutput = errorOutput;

            ProgressTitle   = MiscResources.UpdateProgress;
            AllowBackground = true;
            AllowCancel     = true;
            Status          = new OperationStatus
            {
                StatusText   = MiscResources.Updating,
                ProgressType = OperationProgressType.MB
            };
        }
예제 #29
0
        public FBatchScan(IProfileManager profileManager, AppConfigManager appConfigManager, IconButtonSizer iconButtonSizer, IScanPerformer scanPerformer, IUserConfigManager userConfigManager, BatchScanPerformer batchScanPerformer, IErrorOutput errorOutput, ThreadFactory threadFactory)
        {
            this.profileManager = profileManager;
            this.appConfigManager = appConfigManager;
            this.iconButtonSizer = iconButtonSizer;
            this.scanPerformer = scanPerformer;
            this.userConfigManager = userConfigManager;
            this.batchScanPerformer = batchScanPerformer;
            this.errorOutput = errorOutput;
            this.threadFactory = threadFactory;
            InitializeComponent();

            RestoreFormState = false;
        }
예제 #30
0
 public FEditScanSettings(IScanDriverFactory driverFactory, IErrorOutput errorOutput, ProfileNameTracker profileNameTracker, AppConfigManager appConfigManager)
 {
     this.driverFactory = driverFactory;
     this.errorOutput = errorOutput;
     this.profileNameTracker = profileNameTracker;
     this.appConfigManager = appConfigManager;
     InitializeComponent();
     AddEnumItems<ScanHorizontalAlign>(cmbAlign);
     AddEnumItems<ScanBitDepth>(cmbDepth);
     AddEnumItems<ScanPageSize>(cmbPage, FormatPageSize);
     AddEnumItems<ScanDpi>(cmbResolution);
     AddEnumItems<ScanScale>(cmbScale);
     AddEnumItems<ScanSource>(cmbSource);
 }
예제 #31
0
 public AutomatedScanning(AutomatedScanningOptions options, IProfileManager profileManager, IScanPerformer scanPerformer, IErrorOutput errorOutput, IEmailer emailer, IScannedImageImporter scannedImageImporter, IUserConfigManager userConfigManager, PdfSettingsContainer pdfSettingsContainer, FileNamePlaceholders fileNamePlaceholders, ImageSettingsContainer imageSettingsContainer, IOperationFactory operationFactory)
 {
     this.options = options;
     this.profileManager = profileManager;
     this.scanPerformer = scanPerformer;
     this.errorOutput = errorOutput;
     this.emailer = emailer;
     this.scannedImageImporter = scannedImageImporter;
     this.userConfigManager = userConfigManager;
     this.pdfSettingsContainer = pdfSettingsContainer;
     this.fileNamePlaceholders = fileNamePlaceholders;
     this.imageSettingsContainer = imageSettingsContainer;
     this.operationFactory = operationFactory;
 }
예제 #32
0
 public AutomatedScanning(AutomatedScanningOptions options, IProfileManager profileManager, IScanPerformer scanPerformer, IErrorOutput errorOutput, IEmailer emailer, IScannedImageImporter scannedImageImporter, IUserConfigManager userConfigManager, PdfSettingsContainer pdfSettingsContainer, FileNamePlaceholders fileNamePlaceholders, ImageSettingsContainer imageSettingsContainer, IOperationFactory operationFactory, AppConfigManager appConfigManager)
 {
     this.options                = options;
     this.profileManager         = profileManager;
     this.scanPerformer          = scanPerformer;
     this.errorOutput            = errorOutput;
     this.emailer                = emailer;
     this.scannedImageImporter   = scannedImageImporter;
     this.userConfigManager      = userConfigManager;
     this.pdfSettingsContainer   = pdfSettingsContainer;
     this.fileNamePlaceholders   = fileNamePlaceholders;
     this.imageSettingsContainer = imageSettingsContainer;
     this.operationFactory       = operationFactory;
     this.appConfigManager       = appConfigManager;
 }
예제 #33
0
        public FBatchScan(IProfileManager profileManager, AppConfigManager appConfigManager, IconButtonSizer iconButtonSizer, IScanPerformer scanPerformer, IUserConfigManager userConfigManager, BatchScanPerformer batchScanPerformer, IErrorOutput errorOutput, ThreadFactory threadFactory, DialogHelper dialogHelper)
        {
            this.profileManager     = profileManager;
            this.appConfigManager   = appConfigManager;
            this.iconButtonSizer    = iconButtonSizer;
            this.scanPerformer      = scanPerformer;
            this.userConfigManager  = userConfigManager;
            this.batchScanPerformer = batchScanPerformer;
            this.errorOutput        = errorOutput;
            this.threadFactory      = threadFactory;
            this.dialogHelper       = dialogHelper;
            InitializeComponent();

            RestoreFormState = false;
        }
예제 #34
0
 public FComment(string label, string valType, IFormFactory formFactory, IStatProvider statProvider, IErrorOutput errorOutput, IIlsProvider ilsProvider, IConfigManager configManager, NotificationManager notify, IOperationProgress operationProgress, ChangeTracker changeTracker)
 {
     this.configManager = configManager;
     this.valType       = valType;
     this.label         = label;
     InitializeComponent();
     this.notify            = notify;
     this.operationProgress = operationProgress;
     this.statProvider      = statProvider;
     this.changeTracker     = changeTracker;
     notify.ParentForm      = this;
     this.formFactory       = formFactory;
     this.errorOutput       = errorOutput;
     this.ilsProvider       = ilsProvider;
     FormClosing           += FComment_FormClosing;
     Closed += FComment_Closed;
 }
예제 #35
0
 public FEditProfile(IScanDriverFactory driverFactory, IErrorOutput errorOutput, ProfileNameTracker profileNameTracker, AppConfigManager appConfigManager)
 {
     this.driverFactory = driverFactory;
     this.errorOutput = errorOutput;
     this.profileNameTracker = profileNameTracker;
     this.appConfigManager = appConfigManager;
     InitializeComponent();
     AddEnumItems<ScanHorizontalAlign>(cmbAlign);
     AddEnumItems<ScanBitDepth>(cmbDepth);
     AddEnumItems<ScanDpi>(cmbResolution);
     AddEnumItems<ScanScale>(cmbScale);
     AddEnumItems<ScanSource>(cmbSource);
     cmbPage.Format += (sender, e) =>
     {
         var item = (PageSizeListItem)e.ListItem;
         e.Value = item.Label;
     };
 }
예제 #36
0
        public LocalDatabaseManager(INetworkSourceSettings networkSourceSettings, IFileSourceSettings fileSourceSettings, IErrorOutput errorOutput)
        {
            _networkSourceSettings = networkSourceSettings;
            _fileSourceSettings    = fileSourceSettings;
            _errorOutput           = errorOutput;
            ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls |
                                                   SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
            var clientHandler = new HttpClientHandler
            {
                UseProxy = false
            };

            _httpClient = new HttpClient(clientHandler);
            var assemlyName = Assembly.GetExecutingAssembly().GetName();

            _httpClient.DefaultRequestHeaders.UserAgent.ParseAdd($"{assemlyName.Name}/{assemlyName.Version.ToString(3)}");
            _httpClient.Timeout = TimeSpan.FromSeconds(30);
        }
예제 #37
0
 public FDesktop(IFormFactory formFactory, IStatProvider statProvider, IErrorOutput errorOutput, IIlsProvider ilsProvider, IConfigManager configManager, NotificationManager notify, IOperationProgress operationProgress, ChangeTracker changeTracker)
 {
     this.configManager = configManager;
     InitializeComponent();
     this.notify            = notify;
     this.operationProgress = operationProgress;
     this.statProvider      = statProvider;
     this.changeTracker     = changeTracker;
     notify.ParentForm      = this;
     this.formFactory       = formFactory;
     this.errorOutput       = errorOutput;
     this.ilsProvider       = ilsProvider;
     statUser       = new StatUser();
     locations      = new List <Location>();
     apiStatWrapper = new ApiStatsWrapper(errorOutput, configManager, formFactory);
     FormClosing   += FDesktop_FormClosing;
     Closed        += FDesktop_Closed;
 }
예제 #38
0
 public FEditProfile(IScanDriverFactory driverFactory, IErrorOutput errorOutput, ProfileNameTracker profileNameTracker, AppConfigManager appConfigManager)
 {
     this.driverFactory      = driverFactory;
     this.errorOutput        = errorOutput;
     this.profileNameTracker = profileNameTracker;
     this.appConfigManager   = appConfigManager;
     InitializeComponent();
     AddEnumItems <ScanHorizontalAlign>(cmbAlign);
     AddEnumItems <ScanBitDepth>(cmbDepth);
     AddEnumItems <ScanDpi>(cmbResolution);
     AddEnumItems <ScanScale>(cmbScale);
     AddEnumItems <ScanSource>(cmbSource);
     cmbPage.Format += (sender, e) =>
     {
         var item = (PageSizeListItem)e.ListItem;
         e.Value = item.Label;
     };
 }
예제 #39
0
 public ConsoleOverwritePrompt(IErrorOutput errorOutput)
 {
     this.errorOutput = errorOutput;
 }
예제 #40
0
 public PdfSharpImporter(IErrorOutput errorOutput, IPdfPasswordProvider pdfPasswordProvider, ThumbnailRenderer thumbnailRenderer)
 {
     this.errorOutput = errorOutput;
     this.pdfPasswordProvider = pdfPasswordProvider;
     this.thumbnailRenderer = thumbnailRenderer;
 }
예제 #41
0
 public FormEditRecord(IModel model, IPrMain mainPresenter)
 {
     InitializeComponent();
     Presenter  = new PrEditRecord(this, Application.OpenForms["FormMain"] as FormMain, model, mainPresenter);
     ErrHandler = new ErrorOutput();
 }
예제 #42
0
 public PdfSharpImporter(IScannedImageFactory scannedImageFactory, IErrorOutput errorOutput, IPdfPasswordProvider pdfPasswordProvider)
 {
     this.scannedImageFactory = scannedImageFactory;
     this.errorOutput = errorOutput;
     this.pdfPasswordProvider = pdfPasswordProvider;
 }
예제 #43
0
 public ConsoleOverwritePrompt(IErrorOutput errorOutput)
 {
     this.errorOutput = errorOutput;
 }
예제 #44
0
 public MapiEmailer(IErrorOutput errorOutput)
 {
     this.errorOutput = errorOutput;
 }
예제 #45
0
 public MapiEmailer(IErrorOutput errorOutput)
 {
     this.errorOutput = errorOutput;
 }
예제 #46
0
 public MapiEmailProvider(IWorkerServiceFactory workerServiceFactory, MapiWrapper mapiWrapper, IErrorOutput errorOutput)
 {
     this.workerServiceFactory = workerServiceFactory;
     this.mapiWrapper          = mapiWrapper;
     this.errorOutput          = errorOutput;
 }
예제 #47
0
 public ConsolePdfPasswordProvider(IErrorOutput errorOutput)
 {
     this.errorOutput = errorOutput;
 }
예제 #48
0
 public PdfSharpImporter(IErrorOutput errorOutput, IPdfPasswordProvider pdfPasswordProvider)
 {
     this.errorOutput = errorOutput;
     this.pdfPasswordProvider = pdfPasswordProvider;
 }
예제 #49
0
 public ScanPerformer(IScanDriverFactory driverFactory, IErrorOutput errorOutput)
 {
     this.driverFactory = driverFactory;
     this.errorOutput = errorOutput;
 }