| | |
| | | } |
| | | } |
| | | |
| | | |
| | | public class KeyAlgorithem : IComplexDisplay |
| | | { |
| | | [Browsable(false)] |
| | |
| | | [Description("检测算法路径")] |
| | | [Editor(typeof(FileDialogEditor), typeof(UITypeEditor))] |
| | | public string AlgorithemPath { get; set; } |
| | | |
| | | [Category("上传NG代码")] |
| | | [Description("上传NG代码")] |
| | | public string NGCode { get; set; } |
| | | |
| | | [Category("显示配置")] |
| | | [Description("显示区域大小")] |
| | |
| | | public string KeyResultId { get; set; } |
| | | #endregion |
| | | |
| | | [Category("补偿配置")] |
| | | [DisplayName("单键补偿")] |
| | | [Description("单键补偿")] |
| | | [TypeConverter(typeof(CollectionCountConvert))] |
| | | [Editor(typeof(ComplexCollectionEditor<KeyCompensation>), typeof(UITypeEditor))] |
| | | public List<KeyCompensation> KeyCompensationCollection { get; set; } = new List<KeyCompensation>(); |
| | | |
| | | #region 检测相关字段 |
| | | public Dictionary<string, double> KeyValues = null; |
| | | //public SnapshotPoint SnapshotPoint = null; |
| | |
| | | } |
| | | } |
| | | |
| | | public class KeyCompensation : IComplexDisplay |
| | | { |
| | | [Category("单键补偿")] |
| | | [DisplayName("单键结果")] |
| | | [Description("针对单键的某一项结果做补偿,一般为Z1,Z2,Z3,Z4,B1,B2")] |
| | | public string KeyResult { get; set; } |
| | | |
| | | [Category("单键补偿")] |
| | | [DisplayName("补偿值")] |
| | | [Description("单键结果补偿值")] |
| | | public float Compensation { get; set; } |
| | | |
| | | public string GetDisplayText() |
| | | { |
| | | return $"{KeyResult} {Compensation}"; |
| | | } |
| | | } |
| | | |
| | | public class ProductionMeasurement : INotifyPropertyChanged, IDisposable |
| | | { |
| | | public string Barcode; |
| | |
| | | Measurements?.ForEach(m => m?.Dispose()); |
| | | Measurements = null; |
| | | ElementList = null; |
| | | Barcode = null; |
| | | //Barcode = null; |
| | | GC.Collect(); |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | public class KeyCodeMap : IComplexDisplay |
| | | { |
| | | [Category("键名映射配置")] |
| | | [Description("键名")] |
| | | [TypeConverter(typeof(KeyNameDictConverter))] |
| | | public string Key { get; set; } |
| | | |
| | | [Category("键名映射配置")] |
| | | [Description("上传对应键代码Code")] |
| | | public string KeyCode { get; set; } |
| | | |
| | | public string GetDisplayText() |
| | | { |
| | | return $"{Key}--{KeyCode}"; |
| | | } |
| | | } |
| | | |
| | | //public class NoticedDictionary<T1, T2> : Dictionary<T1, T2>, INotifyPropertyChanged |
| | | //{ |
| | | // public event PropertyChangedEventHandler PropertyChanged; |