private void ClickedPrintAction(object _parameter) { // do the printing and then: Save the token TestIOToken = TheController.GetRunDate(); LabelPrinter.PrintLabel(TestIOToken, TestIOToken); BCScanObject.FireEnableEvent(PostScanHook); // update the message EnableEnterEvent("UpdtMsg", new PropertyChangedEventArgs("Click [Test Scanner] to Continue")); }
private void UIScanEnable() { //Dispatcher.CurrentDispatcher.Invoke(() => // DONT WANT CURRENT DISPATCHER!!! App.Current is UI we will make double // sure of this in the code-behind when handling this event. App.Current.Dispatcher.Invoke(() => { ScanEnabled = true; BCScanObject.FireEnableEvent(PostScanHook); }); }