Exemplo n.º 1
0
 protected virtual void OnRFScan(RFScanEventArgs e)
 {
     if (RFScan != null)
     {
         RFScan(this, e);
     }
 }
Exemplo n.º 2
0
        /// <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();
            }
        }