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))); } }
void ActiveScanner_DataEvent(object sender, Microsoft.PointOfService.DataEventArgs e) { //MessageBox.Show(data, "Data"); this.Dispatcher.BeginInvoke(DispatcherPriority.Normal, (Action)(DoCreditCard)); }