领胜LDS 键盘AOI检测项目
xcd
2020-07-11 c0d59e233882ad489f45abc8eb0193ffa4fb8988
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
    }
}