From d3a44f202c0b12cbac67c71129c3c4f480df55b9 Mon Sep 17 00:00:00 2001
From: xcd <834800634@qq.com>
Date: 星期三, 15 七月 2020 15:48:32 +0800
Subject: [PATCH] 光幕触发修改为同步,消弭信号抖动问题 Excel导出测试

---
 src/Bro.UI.Model.Winform/CommonHelper.cs |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/Bro.UI.Model.Winform/CommonHelper.cs b/src/Bro.UI.Model.Winform/CommonHelper.cs
index ad96dbc..386a179 100644
--- a/src/Bro.UI.Model.Winform/CommonHelper.cs
+++ b/src/Bro.UI.Model.Winform/CommonHelper.cs
@@ -60,7 +60,12 @@
         /// 1st MouseState 鍒濆鐘舵��
         /// 2nd MouseState 鍙樺寲鐘舵��
         /// </summary>
-        public static Action<ElementBase, ElementState, ElementState> ChangeElementsMouseState;
+        public static event Action<ElementBase, ElementState, ElementState> ChangeElementsMouseState;
+
+        public static void TriggerElementsMouseStateChanged(ElementBase ele, ElementState preState, ElementState curState)
+        {
+            ChangeElementsMouseState?.Invoke(ele, preState, curState);
+        }
     }
 
     public class NoticedPoints : List<Point>

--
Gitblit v1.8.0