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(); } }
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(); } }