| | |
| | | using System.ComponentModel; |
| | | using System.Drawing.Design; |
| | | using System.Linq; |
| | | using System.Runtime.CompilerServices; |
| | | |
| | | namespace Bro.Process |
| | | { |
| | |
| | | [TypeConverter(typeof(CollectionCountConvert))] |
| | | [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>(); |
| | |
| | | |
| | | 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 |
| | | } |
| | | } |