From b55fe675d1dd17748a29e4e7de60d14e36740a6e Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期六, 14 十月 2023 13:01:30 +0800 Subject: [PATCH] 2023年10月14日13:01:27 --- HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/TypeSingleFramLayout.cs | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/TypeSingleFramLayout.cs b/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/TypeSingleFramLayout.cs index ee5e6ac..cc9cd29 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/TypeSingleFramLayout.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/TypeSingleFramLayout.cs @@ -6,7 +6,19 @@ { public class TypeSingleFramLayout { + /// <summary> + /// 鏄惁鍙互鐐瑰嚮 + /// </summary> + private bool mIsClick = true; + /// <summary> + /// 璁剧疆鎺у埗鐐瑰嚮浜嬩欢 + /// </summary> + /// <param name="isClick">false鐐瑰嚮鏃犳晥</param> + public void setClick(bool isClick) + { + this.mIsClick = isClick; + } private uint UpBackgroundColor = MusicColor.ViewColor; private uint DownBackgroundColor = AksCommonMethod.seleBackgroundColor; /// <summary> @@ -88,8 +100,9 @@ { EventHandler<MouseEventArgs> UpClick = (sender, e) => { + action?.Invoke(singleFramLayout); //singleFramLayout.BackgroundColor = this.UpBackgroundColor; - + //寮硅捣鏉ヨ繕鍘熻儗鏅鑹� }; singleFramLayout.MouseUpEventHandler += UpClick; @@ -101,7 +114,7 @@ { //鎸変笅鍘绘敼鍙樿儗鏅鑹� //singleFramLayout.BackgroundColor = this.DownBackgroundColor; - action?.Invoke(singleFramLayout); + }; singleFramLayout.MouseDownEventHandler += DownClick; btnLeftImage.MouseDownEventHandler += DownClick; -- Gitblit v1.8.0