Esempio n. 1
0
 private void ShowInfo(BarCodeHook.BarCodes barCode)
 {
     if (this.InvokeRequired)
     {
         this.BeginInvoke(new ShowInfoDelegate(ShowInfo), new object[] { barCode });
     }
     else
     {
         textBox1.Text = barCode.KeyName;
         textBox2.Text = barCode.VirtKey.ToString();
         textBox3.Text = barCode.ScanCode.ToString();
         textBox4.Text = barCode.AscII.ToString();
         textBox5.Text = barCode.Chr.ToString();
         textBox6.Text = barCode.IsValid ? barCode.BarCode : "";
     }
 }
Esempio n. 2
0
 void BarCode_BarCodeEvent(BarCodeHook.BarCodes barCode)
 {
     ShowInfo(barCode);
 }