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; }
public ScanPerformer(IScanDriverFactory driverFactory, IErrorOutput errorOutput, IAutoSave autoSave, AppConfigManager appConfigManager) { this.driverFactory = driverFactory; this.errorOutput = errorOutput; this.autoSave = autoSave; this.appConfigManager = appConfigManager; }
public ScanPerformer(IScanDriverFactory driverFactory, IErrorOutput errorOutput, IAutoSave autoSave, AppConfigManager appConfigManager) { this.driverFactory = driverFactory; this.errorOutput = errorOutput; this.autoSave = autoSave; this.appConfigManager = appConfigManager; }
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 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); }
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); }
public FDesktop(IScanDriverFactory driverFactory, AppConfigManager appConfigManager, IProfileManager profileManager, IScanPerformer scanPerformer, WinFormsExportHelper exportHelper, NotificationManager notify) { this.driverFactory = driverFactory; this.appConfigManager = appConfigManager; this.profileManager = profileManager; this.scanPerformer = scanPerformer; this.exportHelper = exportHelper; this.notify = notify; InitializeComponent(); notify.ParentForm = this; }
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); }
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; }; }
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; }; }
public ScanPerformer(IScanDriverFactory driverFactory, IErrorOutput errorOutput) { this.driverFactory = driverFactory; this.errorOutput = errorOutput; }
public ScanPerformer(IScanDriverFactory driverFactory, IErrorOutput errorOutput) { this.driverFactory = driverFactory; this.errorOutput = errorOutput; }
public ScanService(IScanDriverFactory scanDriverFactory, IScanPerformer scanPerformer) { this.scanDriverFactory = scanDriverFactory; this.scanPerformer = scanPerformer; }