/// <summary> /// this will be called for successful and faulty scans /// </summary> private void ScanIsReady(string sData, bool bIsSuccess) { addLog("ScanIsReady started..."); if (this.InvokeRequired) { deleScanIsReady d = new deleScanIsReady(ScanIsReady); this.Invoke(d, new object[] { sData, bIsSuccess }); } else { //OnScanReady(new EventArgs()); _BarcodeText = sData; _IsSuccess = bIsSuccess; OnScanReady(new Hasci.TestApp.DeviceControlContracts.BarcodeEventArgs(sData, bIsSuccess)); //call event fire function //_bReadingBarcode = false; } }
/// <summary> /// this will be called for successful and faulty scans /// </summary> private void ScanIsReady(string sData, bool bIsSuccess) { System.Diagnostics.Debug.WriteLine("ScanIsReady started..."); if (this.InvokeRequired) { deleScanIsReady d = new deleScanIsReady(ScanIsReady); this.Invoke(d, new object[] { sData, bIsSuccess }); } else { //OnScanReady(new EventArgs()); _BarcodeText = sData; _bIsSuccess = bIsSuccess; OnScanReady(new MEFdemo1.HAL.DeviceControlContracts.BarcodeEventArgs(sData, _bIsSuccess)); //call event fire function //_bReadingBarcode = false; } }
/// <summary> /// this will be called for successful and faulty scans /// </summary> private void ScanIsReady(string sData, bool bIsSuccess) { addLog("ScanIsReady started..."); if (this.InvokeRequired) { deleScanIsReady d = new deleScanIsReady(ScanIsReady); this.Invoke(d, new object[]{sData,bIsSuccess}); } else { //OnScanReady(new EventArgs()); _BarcodeText = sData; _IsSuccess = bIsSuccess; OnScanReady(new Hasci.TestApp.DeviceControlContracts.BarcodeEventArgs(sData, bIsSuccess)); //call event fire function //_bReadingBarcode = false; } }