public PageScannerCollection(YellowstonePathology.Business.Twain.Twain twain) { List <string> printerNames = twain.SourceNames.ToList(); PageScannerGT2500 pageScannerGT2500 = new PageScannerGT2500(); if (printerNames.Contains(pageScannerGT2500.ScannerName)) { this.Add(pageScannerGT2500); } PageScannerIS200e pageScannerIS200e = new PageScannerIS200e(); if (printerNames.Contains(pageScannerIS200e.ScannerName)) { this.Add(pageScannerIS200e); } PageScannerXeroxDocuMate3640 pageScannerXeroxDocuMate3640 = new PageScannerXeroxDocuMate3640(); if (printerNames.Contains(pageScannerXeroxDocuMate3640.ScannerName)) { this.Add(pageScannerXeroxDocuMate3640); } PageScannerFI7160 pageScannerFI7160 = new PageScannerFI7160(); if (printerNames.Contains(pageScannerFI7160.ScannerName)) { this.Add(pageScannerFI7160); } }
private void UserPreferences_Loaded(object sender, RoutedEventArgs e) { this.m_Twain = new Business.Twain.Twain(new WpfWindowMessageHook(Window.GetWindow(this))); if (Environment.OSVersion.VersionString != "Microsoft Windows NT 6.2.9200.0") { this.PageScannerCollection = new Business.Common.PageScannerCollection(this.m_Twain); } else { this.m_PageScannerCollection = new Business.Common.PageScannerCollection(); MessageBox.Show("Unable to initialize the TWAIN Scanner Collection."); } }
private void UserPreferences_Loaded(object sender, RoutedEventArgs e) { this.m_Twain = new Business.Twain.Twain(new WpfWindowMessageHook(Window.GetWindow(this))); if(Environment.OSVersion.VersionString != "Microsoft Windows NT 6.2.9200.0") { this.PageScannerCollection = new Business.Common.PageScannerCollection(this.m_Twain); } else { this.m_PageScannerCollection = new Business.Common.PageScannerCollection(); MessageBox.Show("Unable to initialize the TWAIN Scanner Collection."); } }
private void UserPreferences_Loaded(object sender, RoutedEventArgs e) { this.m_Twain = new Business.Twain.Twain(new WpfWindowMessageHook(Window.GetWindow(this))); }