Пример #1
0
 static void OnBarCode(object sender, BarCodeEventArgs e)
 {
     if (e.Result.Valid)
     {
         Console.WriteLine(e.Result.Code);
     }
     if (e.Result.InternalException == DetectExceptionType.MulBarCodeExceptionType)
     {
         foreach (var exception in e.Result.ExceptionMessage)
         {
             Console.WriteLine(exception);
         }
     }
 }
Пример #2
0
 private void GetBarCodeInfo(object sender, BarCodeEventArgs e)
 {
     throw new NotImplementedException();
 }
Пример #3
0
 private void GetBarCodeInfo(object sender, BarCodeEventArgs e)
 {
     //throw new NotImplementedException();
     MessageBox.Show("获取code数据");
 }
Пример #4
0
 protected virtual void OnBarCodeReceived(BarCodeEventArgs barCodeEventArgs)
 {
     if (null == BarCodeReceived)
         {
             return;
         }
         BarCodeReceived(this, barCodeEventArgs);
 }