From 5ec581e5d37b108fc9d59e89afd8e94e21b32080 Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期二, 17 十月 2023 17:33:36 +0800
Subject: [PATCH] 2023年10月17日17:33:33

---
 HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/TypeSingleFramLayout.cs |   25 +++++++++++++++++++------
 1 files changed, 19 insertions(+), 6 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..15f7d9f 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/TypeSingleFramLayout.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/TypeSingleFramLayout.cs
@@ -6,19 +6,31 @@
 {
     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),
+            Height = Application.GetRealHeight(34),//40
+            Radius = (uint)Application.GetRealHeight(17),
         };
 
         public Button btnLeftImage = new Button
@@ -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