Example #1
0
 public static void HandleScanEvent(object o, VmMdScannerEventArgs e)
 {
     lock( VmApplication.Default )
     {
         VmMdKeyboardInterface.PostKeyboardMessage(e.BarCode);
     }
 }
Example #2
0
        private void r_ReadNotify(object sender, EventArgs e)
        {
            ReaderData rd = _reader.GetNextReaderData();
            if ( rd.Result == Results.SUCCESS )
            {
                VmMdScannerEventArgs sea = new VmMdScannerEventArgs(
                    rd.Text,
                    rd.TimeStamp);

                OnScanned(sea);

                EnableNextRead();
            }
        }
Example #3
0
 private void OnScanned(VmMdScannerEventArgs sea)
 {
     if (Scanned != null)
         Scanned(this, sea);
 }
Example #4
0
 private void OnScanned(VmMdScannerEventArgs sea)
 {
     try
     {
         if (Scanned != null)
             Scanned(this, new VmMdScannerEventArgs(sea.BarCode + '\r',DateTime.Now));
     }
     catch (Exception x)
     {
         System.Windows.Forms.MessageBox.Show("An unexpected error has occurred: " + x.ToString() );
         Application.Exit();
     }
 }
Example #5
0
 protected void _HandleScanEvent(object o, VmMdScannerEventArgs e)
 {
     HandleScan(e.BarCode);
 }