示例#1
0
 /// <summary>
 /// switch scanner off and Cancel a current Read
 /// </summary>
 /// <param name="bOnOff"></param>
 private void scannerOnOff(bool bOnOff)
 {
     if (bOnOff)
     {
         addLog("scannerOnOff called with TRUE...");
     }
     else
     {
         addLog("scannerOnOff called with FALSE...");
     }
     if (bcr != null)
     {
         bcr.ScannerOn     = bOnOff;
         bcr.ScannerEnable = bOnOff;
         if (!bOnOff)
         {
             if (_bReadingBarcode)
             {
                 bcr.CancelRead(true);
             }
         }
     }
     addLog("...scannerOnOff ended");
 }