From 72e397e4550177496288503ab15d74ba077c5b78 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期二, 15 八月 2023 15:14:27 +0800
Subject: [PATCH] 2023年08月15日15:14:20

---
 HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/MenuFramLayout.cs |   60 +++++++++++++++++++++++++++++++-----------------------------
 1 files changed, 31 insertions(+), 29 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/MenuFramLayout.cs b/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/MenuFramLayout.cs
index aaec10b..a969558 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/MenuFramLayout.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/MenuFramLayout.cs
@@ -27,7 +27,8 @@
             Width = Application.GetRealWidth(24),
             Height = Application.GetRealHeight(20),
             UnSelectedImagePath = "AksIcon/shang.png",
-            Name= "涓�",
+            SelectedImagePath = "AksIcon/shang_selected.png",
+            Name = "涓�",
         };
         Button btnBottom = new Button
         {
@@ -36,6 +37,7 @@
             Width = Application.GetRealWidth(24),
             Height = Application.GetRealHeight(20),
             UnSelectedImagePath = "AksIcon/xia.png",
+            SelectedImagePath = "AksIcon/xia_selected.png",
             Name = "涓�",
         };
         Button btnLeft = new Button
@@ -45,6 +47,7 @@
             Width = Application.GetRealWidth(20),
             Height = Application.GetRealHeight(24),
             UnSelectedImagePath = "AksIcon/zuo.png",
+            SelectedImagePath = "AksIcon/zuo_selected.png",
             Name = "宸�",
 
         };
@@ -55,6 +58,7 @@
             Width = Application.GetRealWidth(20),
             Height = Application.GetRealHeight(24),
             UnSelectedImagePath = "AksIcon/you.png",
+            SelectedImagePath = "AksIcon/you_selected.png",
             Name = "鍙�",
 
         };
@@ -101,12 +105,7 @@
         {
             EventHandler<MouseEventArgs> UpClick = (sender, e) =>
             {
-                //btnTop.BackgroundColor = this.UpBackgroundColor;
                 btnTop.IsSelected = false;
-                KeypadEntity keypadEntity = new KeypadEntity();
-                keypadEntity.name = btnTop.Name;
-                keypadEntity.keypad = "key_up";
-                action?.Invoke(keypadEntity);
                 //寮硅捣鏉ヨ繕鍘熻儗鏅鑹�
             };
             btnTop.MouseUpEventHandler += UpClick;
@@ -115,7 +114,11 @@
             EventHandler<MouseEventArgs> DownClick = (sender, e) =>
             {
                 //鎸変笅鍘绘敼鍙樿儗鏅鑹�
-                btnTop.BackgroundColor = this.DownBackgroundColor;
+                btnTop.IsSelected = true;
+                KeypadEntity keypadEntity = new KeypadEntity();
+                keypadEntity.name = btnTop.Name;
+                keypadEntity.keypad = "key_up";
+                action?.Invoke(keypadEntity);
             };
             btnTop.MouseDownEventHandler += DownClick;
         }
@@ -128,12 +131,9 @@
         {
             EventHandler<MouseEventArgs> UpClick = (sender, e) =>
             {
-                //btnBottom.BackgroundColor = this.UpBackgroundColor;
                 btnBottom.IsSelected = false;
-                KeypadEntity keypadEntity = new KeypadEntity();
-                keypadEntity.name = btnBottom.Name;
-                keypadEntity.keypad = "key_down";
-                action?.Invoke(keypadEntity);
+
+
                 //寮硅捣鏉ヨ繕鍘熻儗鏅鑹�
             };
             btnBottom.MouseUpEventHandler += UpClick;
@@ -141,8 +141,12 @@
 
             EventHandler<MouseEventArgs> DownClick = (sender, e) =>
             {
+                btnBottom.IsSelected = true;
+                KeypadEntity keypadEntity = new KeypadEntity();
+                keypadEntity.name = btnBottom.Name;
+                keypadEntity.keypad = "key_down";
+                action?.Invoke(keypadEntity);
                 //鎸変笅鍘绘敼鍙樿儗鏅鑹�
-                btnBottom.BackgroundColor = this.DownBackgroundColor;
             };
             btnBottom.MouseDownEventHandler += DownClick;
         }
@@ -154,12 +158,7 @@
         {
             EventHandler<MouseEventArgs> UpClick = (sender, e) =>
             {
-                //btnLeft.BackgroundColor = this.UpBackgroundColor;
                 btnLeft.IsSelected = false;
-                KeypadEntity keypadEntity = new KeypadEntity();
-                keypadEntity.name = btnLeft.Name;
-                keypadEntity.keypad = "key_left";
-                action?.Invoke(keypadEntity);
                 //寮硅捣鏉ヨ繕鍘熻儗鏅鑹�
             };
             btnLeft.MouseUpEventHandler += UpClick;
@@ -167,8 +166,12 @@
 
             EventHandler<MouseEventArgs> DownClick = (sender, e) =>
             {
+                btnLeft.IsSelected = true;
+                KeypadEntity keypadEntity = new KeypadEntity();
+                keypadEntity.name = btnLeft.Name;
+                keypadEntity.keypad = "key_left";
+                action?.Invoke(keypadEntity);
                 //鎸変笅鍘绘敼鍙樿儗鏅鑹�
-                btnLeft.BackgroundColor = this.DownBackgroundColor;
             };
             btnLeft.MouseDownEventHandler += DownClick;
         }
@@ -180,12 +183,7 @@
         {
             EventHandler<MouseEventArgs> UpClick = (sender, e) =>
             {
-                //btnRight.BackgroundColor = this.UpBackgroundColor;
                 btnRight.IsSelected = false;
-                KeypadEntity keypadEntity = new KeypadEntity();
-                keypadEntity.name = btnRight.Name;
-                keypadEntity.keypad = "key_right";
-                action?.Invoke(keypadEntity);
                 //寮硅捣鏉ヨ繕鍘熻儗鏅鑹�
             };
             btnRight.MouseUpEventHandler += UpClick;
@@ -194,7 +192,11 @@
             EventHandler<MouseEventArgs> DownClick = (sender, e) =>
             {
                 //鎸変笅鍘绘敼鍙樿儗鏅鑹�
-                btnRight.BackgroundColor = this.DownBackgroundColor;
+                btnRight.IsSelected = true;
+                KeypadEntity keypadEntity = new KeypadEntity();
+                keypadEntity.name = btnRight.Name;
+                keypadEntity.keypad = "key_right";
+                action?.Invoke(keypadEntity);
             };
             btnRight.MouseDownEventHandler += DownClick;
         }
@@ -210,10 +212,6 @@
             EventHandler<MouseEventArgs> UpClick = (sender, e) =>
             {
                 btnOk.BackgroundColor = MusicColor.SelectedColor;// this.UpBackgroundColor;
-                KeypadEntity keypadEntity = new KeypadEntity();
-                keypadEntity.name = btnOk.Name;
-                keypadEntity.keypad = "key_ok";
-                action?.Invoke(keypadEntity);
                 //寮硅捣鏉ヨ繕鍘熻儗鏅鑹�
             };
             btnOk.MouseUpEventHandler += UpClick;
@@ -221,6 +219,10 @@
 
             EventHandler<MouseEventArgs> DownClick = (sender, e) =>
             {
+                KeypadEntity keypadEntity = new KeypadEntity();
+                keypadEntity.name = btnOk.Name;
+                keypadEntity.keypad = "key_ok";
+                action?.Invoke(keypadEntity);
                 //鎸変笅鍘绘敼鍙樿儗鏅鑹�
                 btnOk.BackgroundColor = this.DownBackgroundColor;
             };

--
Gitblit v1.8.0