Beispiel #1
0
        public void SimulateScanReceived(string scanData)
        {
            BarcodeScanVersionEnum version = BarcodeScan.GetVersion(scanData);

            switch (version)
            {
            case BarcodeScanVersionEnum.V1:
                this.HandleVersion1Scans(scanData.Trim());
                break;

            case BarcodeScanVersionEnum.V2:
                this.HandleVersion2Scans(scanData.Trim());
                break;
            }
        }
Beispiel #2
0
        private void SerialPort_DataReceived(object sender, SerialDataReceivedEventArgs e)
        {
            string scanData = this.m_SerialPort.ReadExisting();
            BarcodeScanVersionEnum version = BarcodeScan.GetVersion(scanData);

            switch (version)
            {
            case BarcodeScanVersionEnum.V1:
                this.HandleVersion1Scans(scanData.Trim());
                break;

            case BarcodeScanVersionEnum.V2:
                this.HandleVersion2Scans(scanData.Trim());
                break;
            }
        }
Beispiel #3
0
 public BarcodeScanEventArgs(BarcodeScan barcodeScan)
 {
     this.m_BarcodeScan = barcodeScan;
 }
 public BarcodeScanEventArgs(BarcodeScan barcodeScan)
 {
     this.m_BarcodeScan = barcodeScan;
 }