protected virtual void OnRFScan(RFScanEventArgs e) { if (RFScan != null) { RFScan(this, e); } }
/// <summary> /// Read complete or failure notification. /// </summary> private void MyReader_ReadNotify(object sender, EventArgs e) { Symbol.Barcode.ReaderData TheReaderData = this.MyReader.GetNextReaderData(); // If it is a successful read (as opposed to a failed one) if (TheReaderData.Result == Symbol.Results.SUCCESS) { // Handle the data from this read. RFScanEventArgs eRFScan = new RFScanEventArgs(TheReaderData.Text); OnRFScan(eRFScan); // Start the next read this.StartRead(); } }