From 36540bdc906f402f4c55cc7460b6facfd344a793 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期五, 04 八月 2023 14:55:14 +0800
Subject: [PATCH] 2023年08月04日14:55:04

---
 HDL_ON/UI/UI2/FuntionControlView/Aks/AksPage.cs |  115 ++++++++++++++++++++++++++++++++++++++++++---------------
 1 files changed, 84 insertions(+), 31 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Aks/AksPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Aks/AksPage.cs
index 12570d9..d339498 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Aks/AksPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Aks/AksPage.cs
@@ -12,6 +12,9 @@
 
 namespace HDL_ON.UI.UI2.FuntionControlView.Aks
 {
+    /// <summary>
+    /// 鍩冨厠鏂富鐣岄潰
+    /// </summary>
     public class AksPage : FrameLayout
     {
         #region 鈻� 鍙橀噺澹版槑___________________________
@@ -48,7 +51,9 @@
         /// 鍒犻櫎璁惧鍚庨渶瑕佹洿鏂扮晫闈㈢殑鍥炶皟
         /// </summary>
         public Action action;
-
+        /// <summary>
+        /// 璁板綍褰撳墠璁惧
+        /// </summary>
         public IntType currnetIntType= IntType.none;
 
         public VerticalScrolViewLayout vv;
@@ -179,13 +184,7 @@
             });
         }
         /// <summary>
-        /// 鍒囨崲鐣岄潰
-        ///1 = 鎾斁鍣�
-        ///2 = 鍔熸斁
-        ///3 = 鐢佃
-        ///4 = 鏈洪《鐩�
-        ///5 = 鎶曞奖浠�
-        ///6 = 涓囪兘閬ユ帶鍣�
+        /// 鍒囨崲鐣岄潰(1 = 鎾斁鍣�,2 = 鍔熸斁,3 = 鐢佃,4 = 鏈洪《鐩�,5 = 鎶曞奖浠�,6 = 涓囪兘閬ユ帶鍣�)
         /// </summary>
         private void SwitchUI(IntType type)
         {
@@ -206,46 +205,90 @@
             {
                 case IntType.Player:
                     {
-                        AksMusicPage aksMusicPage = new AksMusicPage();
-                        this.vv.AddChidren(aksMusicPage);
-                        aksMusicPage.Show();
-                        aksMusicPage.action += (type) =>
+                        MusicPage musicPage = new MusicPage();
+                        this.vv.AddChidren(musicPage);
+                        musicPage.Show();
+                        musicPage.action += (type) =>
                         {
                             SelectedType();
                         };
                     }
                     break;
-                case IntType.HiFi: { } break;
-                case IntType.TV: { } break;
-                case IntType.STB: { } break;
-                case IntType.Projector: { } break;
-                case IntType.Control: { } break;
+                case IntType.HiFi:
+                    {
+                        GfPage gfPage = new GfPage();
+                        this.vv.AddChidren(gfPage);
+                        gfPage.Show();
+                        gfPage.action += (type) =>
+                        {
+                            SelectedType();
+                        };
+
+                    }
+                    break;
+                case IntType.TV:
+                    {
+
+                        TvPage tvPage = new TvPage();
+                        this.vv.AddChidren(tvPage);
+                        tvPage.Show();
+                        tvPage.action += (type) =>
+                        {
+                            SelectedType();
+                        };
+                    }
+                    break;
+                case IntType.STB:
+                    {
+                        JdhPage jdhPage = new JdhPage();
+                        this.vv.AddChidren(jdhPage);
+                        jdhPage.Show();
+                        jdhPage.action += (type) =>
+                        {
+                            SelectedType();
+                        };
+                    }
+                    break;
+                case IntType.Projector:
+                    {
+                        TyyPage tyyPage = new TyyPage();
+                        this.vv.AddChidren(tyyPage);
+                        tyyPage.Show();
+                        tyyPage.action += (type) =>
+                        {
+                            SelectedType();
+                        };
+                    }
+                    break;
+                case IntType.Control:
+                    {
+                        YkqPage ykqPage = new YkqPage();
+                        this.vv.AddChidren(ykqPage);
+                        ykqPage.Show();
+                        ykqPage.action += (type) =>
+                        {
+                            SelectedType();
+                        };
+                    }
+                    break;
 
             }
 
         }
         /// <summary>
-        /// 閫変腑绫诲瀷
-        ///1 = 鎾斁鍣�
-        ///2 = 鍔熸斁
-        ///3 = 鐢佃
-        ///4 = 鏈洪《鐩�
-        ///5 = 鎶曞奖浠�
-        ///6 = 涓囪兘閬ユ帶鍣�
+        /// 閫変腑绫诲瀷寮规(1 = 鎾斁鍣�,2 = 鍔熸斁,3 = 鐢佃,4 = 鏈洪《鐩�,5 = 鎶曞奖浠�,6 = 涓囪兘閬ユ帶鍣�)
         /// </summary>
-        /// <param name="button">鏄剧ず鏂囨湰</param>
         private void SelectedType()
         {
             var deviceTypeList = GetTypeDictionary().Values.ToList();
             ///涔嬪墠鐨勭姸鎬佹枃鏈�
-            string currCondition = Language.StringByID(StringId.bofangqi);
+            string ccurrnetDeviceStr= this.GetValueString(this.currnetIntType);
             PublicInterface conditionView = new PublicInterface();
-            conditionView.SingleSelectionShow(this, deviceTypeList, "璁惧閫夋嫨", currCondition
-               , (stateValue) =>
+            conditionView.SingleSelectionShow(this, deviceTypeList, "璁惧閫夋嫨", ccurrnetDeviceStr
+               , (valueStr) =>
                {
                    //鐣岄潰鏄剧ず閫変腑鍊�
-                   //button.Text = stateValue;
-                   var intType = this.GetKeyIntType(stateValue);
+                   var intType = this.GetKeyIntType(valueStr);
                    this.SwitchUI(intType);
 
                });
@@ -284,7 +327,7 @@
         }
 
         /// <summary>
-        /// 
+        /// 鍒濆鍖栧瓧鍏�
         /// </summary>
         /// <returns></returns>
         private Dictionary<IntType, string> GetTypeDictionary()
@@ -298,6 +341,11 @@
             dic.Add(IntType.Control, Language.StringByID(StringId.xuniyaokongqi));
             return dic;
         }
+        /// <summary>
+        /// 鑾峰彇璁惧绫诲瀷
+        /// </summary>
+        /// <param name="value">(1 = 鎾斁鍣�,2 = 鍔熸斁,3 = 鐢佃,4 = 鏈洪《鐩�,5 = 鎶曞奖浠�,6 = 涓囪兘閬ユ帶鍣�)</param>
+        /// <returns></returns>
         private IntType GetKeyIntType(string value)
         {
             var dic = this.GetTypeDictionary();
@@ -310,6 +358,11 @@
             }
             return IntType.none;
         }
+        /// <summary>
+        /// 鑾峰彇璁惧鍚嶇О
+        /// </summary>
+        /// <param name="key">(1 = 鎾斁鍣�,2 = 鍔熸斁,3 = 鐢佃,4 = 鏈洪《鐩�,5 = 鎶曞奖浠�,6 = 涓囪兘閬ユ帶鍣�)</param>
+        /// <returns></returns>
         private string GetValueString(IntType key)
         {
             var dic = this.GetTypeDictionary();

--
Gitblit v1.8.0