Exemplo n.º 1
0
 /// <summary>
 /// Start сканера Dolphin 9950
 /// </summary>
 public override void Start()
 {
     if (bMayScan == true)
     {
         RightLEDOff();
         xEng.Device.SetLEDs(Device.LedSelect.RightRed, Device.LedState.On, 0, 0);
         xEng.ScanBarcode();
     }
     bMayScan = false;
 }
Exemplo n.º 2
0
        void _form_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == (Keys)42)
            {
                Logger.Write("Honeywell - Begin Scan");

                _form.KeyDown -= _form_KeyDown;

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

                e.Handled = true;
            }
        }