예제 #1
0
 /// <summary>
 /// 得到输入结果
 /// </summary>
 /// <param name="scanerCodes"></param>
 private void GetInputValue(ScanerHook.ScanerCodes scanerCodes)
 {
     //给定读取结果
     strInputMsg = scanerCodes.Result.ToUpper();
     MessageBox.Show(strInputMsg);
 }
예제 #2
0
 /// <summary>
 /// 钩子相应事件
 /// </summary>
 /// <param name="scanerCodes"></param>
 private void ScanerHook_BarCodeEvent(ScanerHook.ScanerCodes scanerCodes)
 {
     GetInputValue(scanerCodes);
 }