From 1bc2df66bc88a6405df345dccc24a5031e18b592 Mon Sep 17 00:00:00 2001 From: patrick.xu <patrick.xu@broconcentric.com> Date: 星期一, 21 十二月 2020 09:54:48 +0800 Subject: [PATCH] 1. gocator添加byte2/byte4的配置,目前测试byte4不成功,暂时还是使用byte2配置。 2. 添加键名代码映射配置和NG键名代码上传功能 --- 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