コード例 #1
0
ファイル: BarcodeControl2.cs プロジェクト: grothag/pocketmef
 protected virtual void OnScanReady(MEFdemo1.HAL.DeviceControlContracts.BarcodeEventArgs e)
 {
     if (ScanReady != null)
     {
         ScanReady(this, e);
     }
 }
コード例 #2
0
ファイル: BarcodeForm.cs プロジェクト: grothag/pocketmef
 void conScan_ScanReady(object sender, BarcodeEventArgs e)
 {
     textBox1.Text = e.Text;
     if (e._bSuccess)
     {
         textBox1.BackColor = Color.Green;
     }
     else
     {
         textBox1.BackColor = Color.Pink;
     }
 }