protected virtual void OnScanReady(MEFdemo1.HAL.DeviceControlContracts.BarcodeEventArgs e) { if (ScanReady != null) { ScanReady(this, e); } }
void conScan_ScanReady(object sender, BarcodeEventArgs e) { textBox1.Text = e.Text; if (e._bSuccess) { textBox1.BackColor = Color.Green; } else { textBox1.BackColor = Color.Pink; } }