/// <summary> /// Status notification handler. /// </summary> private void myReader_StatusNotify(object Sender, EventArgs e) { // Checks if the Invoke method is required because the StatusNotify delegate is called by a different thread if (this.InvokeRequired) { // Executes the StatusNotify delegate on the main thread this.Invoke(myStatusNotifyHandler, new object[] { Sender, e }); } else { // Get ReaderData Symbol.Barcode.BarcodeStatus TheStatusData = this.myScanSampleAPI.Reader.GetNextStatus(); switch (TheStatusData.State) { case Symbol.Barcode.States.IDLE: //if (currentListView == SCAN) // statusBar.Text = "Press trigger to scan"; break; case Symbol.Barcode.States.READY: //if ((currentListView == SCAN)) // statusBar.Text = "Aim at barcode to scan"; break; default: //statusBar.Text = TheStatusData.Text; break; } prevState = TheStatusData.State; } }