From d33b5b1a8ade81e5c738780d7a5610eb3b9fe712 Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期一, 16 十月 2023 18:02:00 +0800
Subject: [PATCH] 2023年10月16日18:01:57

---
 HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/TypeSingleFramLayout.cs |   21 +++++++++++++++++----
 1 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/TypeSingleFramLayout.cs b/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/TypeSingleFramLayout.cs
index e5b2b5c..ae48e6f 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/TypeSingleFramLayout.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/TypeSingleFramLayout.cs
@@ -6,16 +6,28 @@
 {
     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 = 0xFFEFEFEF;
+        private uint DownBackgroundColor = AksCommonMethod.seleBackgroundColor;
         /// <summary>
         /// 鍗曚釜绫诲瀷瀹瑰櫒
         /// </summary>
         public FrameLayout singleFramLayout = new FrameLayout
         {
             BackgroundColor = MusicColor.ViewColor,
-            Gravity = Gravity.CenterHorizontal,
+            //Gravity = Gravity.CenterHorizontal,
             Width = Application.GetRealWidth(101),
             Height = Application.GetRealHeight(40),
             Radius = (uint)Application.GetRealHeight(20),
@@ -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