Esempio n. 1
0
 private void doScanAction()
 {
     if ((Information.IsNumeric(txtScannerInput.Text)))
     {
         ModuleSounds.PlayBeep();
         addScanItem(int.Parse(txtScannerInput.Text));
     }
     else if (txtScannerInput.Text.Length > 0)
     {
         txtScannerInput.Text = "";
         ModuleSounds.PlayInvalidBarcode();
     }
 }
Esempio n. 2
0
 private void doScanAction()
 {
     if ((Information.IsNumeric(txtScannerInput.Text)))
     {
         ModuleSounds.PlayBeep();
         try
         {
             addScanItem(int.Parse(txtScannerInput.Text));
         }
         catch (Exception e)
         {
             log.Warn(e, "Failed to parse large integer on scanning: " + txtScannerInput.Text);
         }
     }
     else if (txtScannerInput.Text.Length > 0)
     {
         txtScannerInput.Text = "";
         ModuleSounds.PlayInvalidBarcode();
     }
 }