Пример #1
0
 private void ShowInfo(BarCodeHook.BarCodes barCode)
 {
     if (this.InvokeRequired)
     {
         this.BeginInvoke(new ShowInfoDelegate(ShowInfo), new object[] { barCode });
     }
     else
     {
         //txtBarCode.Text = barCode.IsValid ? barCode.BarCode : "";
         if (this.barMainContainer.SelectedDockContainerItem.Tag is BaseForm && barCode.IsValid)
         {
             (this.barMainContainer.SelectedDockContainerItem.Tag as BaseForm).doBarCode(barCode.BarCode);
         }
     }
 }
Пример #2
0
 void BarCode_BarCodeEvent(BarCodeHook.BarCodes barCode)
 {
     this.ShowInfo(barCode);
 }
Пример #3
0
 //方式一
 public void InitBarCode()
 {
     BarCode = new BarCodeHook();
     BarCode.BarCodeEvent += new BarCodeHook.BarCodeDelegate(BarCode_BarCodeEvent);
 }