Beispiel #1
0
 public FProfiles(IProfileManager profileManager, AppConfigManager appConfigManager, IconButtonSizer iconButtonSizer, IScanPerformer scanPerformer, ProfileNameTracker profileNameTracker)
 {
     this.profileManager = profileManager;
     this.appConfigManager = appConfigManager;
     this.iconButtonSizer = iconButtonSizer;
     this.scanPerformer = scanPerformer;
     this.profileNameTracker = profileNameTracker;
     InitializeComponent();
 }
Beispiel #2
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);
 }
Beispiel #3
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;
     };
 }