Exemple #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;
        }
Exemple #2
0
 public ScanPerformer(IScanDriverFactory driverFactory, IErrorOutput errorOutput, IAutoSave autoSave, AppConfigManager appConfigManager)
 {
     this.driverFactory    = driverFactory;
     this.errorOutput      = errorOutput;
     this.autoSave         = autoSave;
     this.appConfigManager = appConfigManager;
 }
Exemple #3
0
 public ScanPerformer(IScanDriverFactory driverFactory, IErrorOutput errorOutput, IAutoSave autoSave, AppConfigManager appConfigManager)
 {
     this.driverFactory = driverFactory;
     this.errorOutput = errorOutput;
     this.autoSave = autoSave;
     this.appConfigManager = appConfigManager;
 }
Exemple #4
0
 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;
 }
Exemple #5
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);
 }
Exemple #6
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);
 }
Exemple #7
0
        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;
        }
Exemple #8
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);
 }
Exemple #9
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;
     };
 }
Exemple #10
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;
     };
 }
Exemple #11
0
 public ScanPerformer(IScanDriverFactory driverFactory, IErrorOutput errorOutput)
 {
     this.driverFactory = driverFactory;
     this.errorOutput = errorOutput;
 }
Exemple #12
0
 public ScanPerformer(IScanDriverFactory driverFactory, IErrorOutput errorOutput)
 {
     this.driverFactory = driverFactory;
     this.errorOutput   = errorOutput;
 }
 public ScanService(IScanDriverFactory scanDriverFactory, IScanPerformer scanPerformer)
 {
     this.scanDriverFactory = scanDriverFactory;
     this.scanPerformer     = scanPerformer;
 }