void myReader_ReadNotify(object sender, EventArgs e) { Symbol.Barcode.ReaderData nextReaderData = myReader.GetNextReaderData(); partID.Text = nextReaderData.Text; getPart(nextReaderData.Text); myReader.Actions.Read(myReaderData); }
void _reader_ReadNotify(object sender, EventArgs e) { try { if (Scan != null) { ScanEventArgs args = new ScanEventArgs(); Symbol.Barcode.ReaderData nextReaderData = _reader.GetNextReaderData(); //Get(s)NextReaderData args.Data = nextReaderData.Text; Scan(this, args); } } finally { _reader.Actions.Read(_readerData); //await next scan. } }