//# __________ PROTOCOL :: PUBLIC __________ #// public static void StartKeyboardWedge(String driverName) { lock( VmApplication.Default ) { VmMdVendorFactory.Instance.ScannerDLL = driverName; scanner = VmMdVendorFactory.Instance.GetScannerInterface(); scanner.Scanned += new VmMdScannerEventArgs.ScannerEventHandler(HandleScanEvent); scanner.Enable(); } }
//# __________ PROTOCOL :: PROTECTED (SCAN WRAPPER) __________ #// protected void _InitializeDriver(String driverName) { lock( this ) { if( JwUtility.IsEmpty( driverName ) ) return; if( _driver != null ) return; VmMdVendorFactory.Instance.ScannerDLL = driverName; _driver = VmMdVendorFactory.Instance.GetScannerInterface(); _driver.Scanned += new VmMdScannerEventArgs.ScannerEventHandler(_HandleScanEvent); _driver.AllowCode93(); _driver.Enable(); } }