| | |
| | | |
| | | #region 事件 |
| | | public event Action OnMeasureStart; |
| | | public event Action<string> OnBarcodeChanged; |
| | | public event Action OnClearBarcode; |
| | | public event Action<IShapeElement> OnElementUpdated; |
| | | #endregion |
| | | |
| | |
| | | /// </summary> |
| | | private void CheckMachineState() |
| | | { |
| | | throw new NotImplementedException(); |
| | | //throw new NotImplementedException(); |
| | | } |
| | | |
| | | private void InitialSetting() |
| | |
| | | //} |
| | | #endregion |
| | | |
| | | private string barCode = ""; |
| | | public string BarCode |
| | | { |
| | | get => barCode; |
| | | set |
| | | { |
| | | if (barCode != value) |
| | | { |
| | | barCode = value; |
| | | OnBarcodeChanged?.Invoke(value); |
| | | } |
| | | } |
| | | } |
| | | public string BarCode { get; set; } |
| | | |
| | | List<ProductionMeasurement> productionList = new List<ProductionMeasurement>(); |
| | | |
| | |
| | | { |
| | | if (string.IsNullOrWhiteSpace(BarCode)) |
| | | { |
| | | OnClearBarcode?.Invoke(); |
| | | throw new ProcessException("未输入产品条码,请勿开始测量"); |
| | | } |
| | | |