From db7f62beafa09e14ecbab1146b157d5978088a4d Mon Sep 17 00:00:00 2001
From: xcd <834800634@qq.com>
Date: 星期三, 15 七月 2020 11:14:04 +0800
Subject: [PATCH] M071主界面添加批量添加测量项界面 修复CanvasImage复数显示时无法编辑标签问题

---
 src/Bro.Process/ProcessConfig.cs |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/src/Bro.Process/ProcessConfig.cs b/src/Bro.Process/ProcessConfig.cs
index 1dc98f4..e718679 100644
--- a/src/Bro.Process/ProcessConfig.cs
+++ b/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
 {
@@ -68,7 +69,7 @@
         [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>();
@@ -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
     }
 }

--
Gitblit v1.8.0