领胜LDS 键盘AOI检测项目
patrick.xu
2021-04-28 96b6869bb20677f9b945f67c014a9b992ee05ac4
src/Bro.Process/ProcessConfig.cs
@@ -7,6 +7,7 @@
using System.ComponentModel;
using System.Drawing.Design;
using System.Linq;
using System.Runtime.CompilerServices;
namespace Bro.Process
{
@@ -66,9 +67,9 @@
        [Description("默认操作配置集合")]
        [DisplayName("默认操作配置")]
        [TypeConverter(typeof(CollectionCountConvert))]
        [Editor(typeof(ComplexCollectionEditor<SimpleMonitorSet>), typeof(UITypeEditor))]
        [Editor(typeof(ComplexCollectionEditor<MonitorSetBase>), typeof(UITypeEditor))]
        public List<IMonitorSet> MonitorSetCollection { get; set; } = new List<IMonitorSet>();
        public virtual List<IInitialConfig> GetAllDeviceInitialConfigs()
        {
            List<IInitialConfig> configs = new List<IInitialConfig>();
@@ -107,5 +108,19 @@
            return list;
        }
        #region IPropertyChanged
        public event PropertyChangedEventHandler PropertyChanged;
        public virtual void Set<T>(ref T field, T newValue, [CallerMemberName] string propName = null)
        {
            if (!field.Equals(newValue))
            {
                field = newValue;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propName));
            }
        }
        #endregion
    }
}