From 6935238d2b7fdabbe46514b50e154df44af862f8 Mon Sep 17 00:00:00 2001 From: wells.liu <wells.liu@broconcentric.com> Date: 星期一, 06 七月 2020 11:32:09 +0800 Subject: [PATCH] 合并 --- src/Bro.M071.Process/M071Models.cs | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/Bro.M071.Process/M071Models.cs b/src/Bro.M071.Process/M071Models.cs index 4789b6e..0d94bd0 100644 --- a/src/Bro.M071.Process/M071Models.cs +++ b/src/Bro.M071.Process/M071Models.cs @@ -75,7 +75,7 @@ { public string GetDisplayText() { - return (IsEnabled ? "" : "绂佺敤 ") + Name + " " + string.Join(" ", Destination.Select(u => u.GetDisplayText())) + " " + CameraOp.GetDisplayText(); + return (IsEnabled ? "" : "绂佺敤 ") + Name + " " + MotionOp.GetDisplayText() + " " + CameraOp.GetDisplayText(); } public List<string> GetHalconToolPathList() @@ -205,9 +205,13 @@ { public string Barcode; - public List<MeasurementUint> Measurements = new List<MeasurementUint>(); + public List<MeasurementUnit> Measurements = new List<MeasurementUnit>(); public List<IShapeElement> ElementList = new List<IShapeElement>(); + + public DateTime? StartTime = null; + + public DateTime? EndTime = null; public event PropertyChangedEventHandler PropertyChanged; @@ -235,7 +239,7 @@ } } - public class MeasurementUint : IComplexDisplay, INotifyPropertyChanged, IDisposable + public class MeasurementUnit : IComplexDisplay, INotifyPropertyChanged, IDisposable { public string Id = Guid.NewGuid().ToString(); @@ -312,7 +316,7 @@ [Category("鍗曢敭閰嶇疆")] [Description("鍗曢敭缁撴灉閰嶇疆")] [TypeConverter(typeof(KeyUnitResultConverter))] - public string KeyResult { get; set; } = ""; + public string KeyResultId { get; set; } = ""; public List<HImage> KeyImages = new List<HImage>(); @@ -342,7 +346,7 @@ { string msg = Key; - msg += string.IsNullOrWhiteSpace(KeyResult) ? "" : $"-{KeyResult}"; + msg += string.IsNullOrWhiteSpace(KeyResultId) ? "" : $"-{KeyResultId}"; return msg; } -- Gitblit v1.8.0