Ejemplo n.º 1
0
        void _form_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == (Keys)42)
            {
                Logger.Write("Honeywell - End Scan");

                _form.KeyDown += _form_KeyDown;

                try
                {
                    _reader.CancelScanBarcode();
                }
                catch (Exception ex)
                {
                    Logger.Write(ex.ToString());
                }

                e.Handled = true;
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Stop reading and disable/close the reader.
        /// </summary>
        public override bool DisableScanner()
        {
            //Log.Write(new LogEntry("HoneywellReader: DisableScanner"));
            // If we have a reader
            if (oDecodeAssembly != null)
            {
                try {
                    oDecodeAssembly.CancelScanBarcode();

                    return(true);
                } catch (Exception ex) {
                    Services.Services.ReportException(ex);
                    //Log.Write(new LogEntry("Error disabling scanner: " + ex.ToString()));
                    return(false);
                }
            }
            return(false);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Stop a сканера Dolphin 9950
 /// </summary>
 public override void Stop()
 {
     xEng.CancelScanBarcode();
     RightLEDOff();
     bMayScan = true;
 }