| | |
| | | get => key; |
| | | set |
| | | { |
| | | AlignName = key = value; |
| | | AliasName = key = value; |
| | | } |
| | | } |
| | | |
| | | [Category("键名配置")] |
| | | [Description("别名")] |
| | | public string AlignName { get; set; } |
| | | public string AliasName { get; set; } |
| | | |
| | | [Category("启用设置")] |
| | | [Description("true:启用 false:禁用")] |
| | |
| | | |
| | | public string GetDisplayText() |
| | | { |
| | | return $"{AlignName}"; |
| | | string snapShot = "未指定"; |
| | | |
| | | using (var scope = GlobalVar.Container.BeginLifetimeScope()) |
| | | { |
| | | var config = scope.Resolve<IProcessConfig>(); |
| | | if (config != null) |
| | | { |
| | | var snapshotPoint = (config as M071Config).SnapshotPointCollection.FirstOrDefault(u => u.Id == SnapshotPointId); |
| | | if (snapshotPoint != null) |
| | | { |
| | | snapShot = snapshotPoint.Name; |
| | | } |
| | | } |
| | | } |
| | | |
| | | return $"{AliasName}-{snapShot}-{ImageSeq}"; |
| | | } |
| | | |
| | | public List<string> GetHalconToolPathList() |
| | |
| | | public class ProductionMeasurement : INotifyPropertyChanged, IDisposable |
| | | { |
| | | public string Barcode; |
| | | public string PResult; |
| | | |
| | | public List<MeasurementUnit> Measurements = new List<MeasurementUnit>(); |
| | | |