Exemple #1
0
 private void SetScannerPageSize(ImgScan.ICTwainSupportedSizes size)
 {
     this.ScannerPageSizeNoneButton.IsChecked = (size == ImgScan.ICTwainSupportedSizes.None);
     this.ScannerPageSizeA4Button.IsChecked = (size == ImgScan.ICTwainSupportedSizes.A4);
     this.ScannerPageSizeA5Button.IsChecked = (size == ImgScan.ICTwainSupportedSizes.A5);
     Settings.Default.ScannerPageSize = size.ToString();
 }
Exemple #2
0
 private void SetScannerPageOrientation(ImgScan.ICTwainOrientations orientation)
 {
     this.ScannerPageOrientationPortraitButton.IsChecked = (orientation == ImgScan.ICTwainOrientations.Portrait);
     this.ScannerPageOrientationLandscapeButton.IsChecked = (orientation == ImgScan.ICTwainOrientations.Landscape);
     Settings.Default.ScannerPageOrientation = orientation.ToString();
 }