private void ShowInfo(BarCodeHook.BarCodes barCode) { if (InvokeRequired) { BeginInvoke(new ShowInfoDelegate(ShowInfo), new object[] { barCode }); } else { textBox1.Text = barCode.KeyName; } }
void BarCode_BarCodeEvent(BarCodeHook.BarCodes barCode) { ShowInfo(barCode); }