public void PostScanHook(String ScanValue) { char[] delim = { '|' }; // NOTE: the main thread will // after scanning // Update the barcode in the ExoNetUT object TheController.SaveBarCodeValue(TopIndex, ScanValue); //Update the UI: Necessary to do this here. StatusLabelCombo LabelStatus = new StatusLabelCombo(); LabelStatus.LabelBox = ""; LabelStatus.Status = ""; UpdateUI(LabelStatus); // update the status and commitPersist(rundone.txt) of this EN to file LastLabel = TheController.GetLabel(TopIndex).Trim(delim); // print label at the end of commiting LabelPrinter.PrintLabel( LastLabel.Split(delim, StringSplitOptions.RemoveEmptyEntries)[0], LastLabel.Split(delim, StringSplitOptions.RemoveEmptyEntries)[1] ); LabelPrinter.PrintLabel( LastLabel.Split(delim, StringSplitOptions.RemoveEmptyEntries)[0], LastLabel.Split(delim, StringSplitOptions.RemoveEmptyEntries)[1] ); }
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 PauseAReprint(object Parameter) { //reprint last label here //get information about TopIndex and reprint the label char[] delim = { '|' }; LabelPrinter.PrintLabel( LastLabel.Split(delim, StringSplitOptions.RemoveEmptyEntries)[0], LastLabel.Split(delim, StringSplitOptions.RemoveEmptyEntries)[1] ); LabelPrinter.PrintLabel( LastLabel.Split(delim, StringSplitOptions.RemoveEmptyEntries)[0], LastLabel.Split(delim, StringSplitOptions.RemoveEmptyEntries)[1] ); }