Exemple #1
0
 void ActiveScanner_DataEvent(object sender, Microsoft.PointOfService.DataEventArgs e)
 {
     if (!IsLoggedIn)
     {
         string data = Encoding.ASCII.GetString(DeviceManager.ActiveScanner.ScanData);
         //MessageBox.Show(data, "Data");
         Dispatcher.BeginInvoke(DispatcherPriority.Normal,
                                (Action)(() => DoLogin(data)));
     }
 }
Exemple #2
0
 void ActiveScanner_DataEvent(object sender, Microsoft.PointOfService.DataEventArgs e)
 {
     //MessageBox.Show(data, "Data");
     this.Dispatcher.BeginInvoke(DispatcherPriority.Normal,
                                 (Action)(DoCreditCard));
 }