领胜LDS 键盘AOI检测项目
wells.liu
2020-07-10 0ec7f2e32c8c7ef62ab71c0a2f5bd015aef7d7fe
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,15 +67,16 @@
        [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>();
            configs.AddRange(CameraConfigCollection);
            configs.AddRange(PLCConfigCollection);
            configs.AddRange(DeviceConfigs);
            return configs;
        }
@@ -106,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
    }
}