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