From 72c7bdb62b203eeb6a590e96bf25a4e186bd45cd Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期四, 03 八月 2023 20:21:55 +0800 Subject: [PATCH] 2023年08月03日20:21:49 --- HDL_ON/UI/UI2/FuntionControlView/Aks/AksPage.cs | 63 +++++++++++++++++++------------ 1 files changed, 39 insertions(+), 24 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/Aks/AksPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Aks/AksPage.cs index 12570d9..0c93e11 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Aks/AksPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Aks/AksPage.cs @@ -48,7 +48,9 @@ /// 鍒犻櫎璁惧鍚庨渶瑕佹洿鏂扮晫闈㈢殑鍥炶皟 /// </summary> public Action action; - + /// <summary> + /// 璁板綍褰撳墠璁惧 + /// </summary> public IntType currnetIntType= IntType.none; public VerticalScrolViewLayout vv; @@ -179,13 +181,7 @@ }); } /// <summary> - /// 鍒囨崲鐣岄潰 - ///1 = 鎾斁鍣� - ///2 = 鍔熸斁 - ///3 = 鐢佃 - ///4 = 鏈洪《鐩� - ///5 = 鎶曞奖浠� - ///6 = 涓囪兘閬ユ帶鍣� + /// 鍒囨崲鐣岄潰(1 = 鎾斁鍣�,2 = 鍔熸斁,3 = 鐢佃,4 = 鏈洪《鐩�,5 = 鎶曞奖浠�,6 = 涓囪兘閬ユ帶鍣�) /// </summary> private void SwitchUI(IntType type) { @@ -215,37 +211,46 @@ }; } break; - case IntType.HiFi: { } break; + case IntType.HiFi: { + GFPage gFPage = new GFPage(); + this.vv.AddChidren(gFPage); + gFPage.Show(); + gFPage.action += (type) => + { + SelectedType(); + }; + + } break; case IntType.TV: { } break; case IntType.STB: { } break; - case IntType.Projector: { } break; + case IntType.Projector: { + TYYPage tYYPage = new TYYPage(); + this.vv.AddChidren(tYYPage); + tYYPage.Show(); + tYYPage.action += (type) => + { + SelectedType(); + }; + } break; case IntType.Control: { } 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 +289,7 @@ } /// <summary> - /// + /// 鍒濆鍖栧瓧鍏� /// </summary> /// <returns></returns> private Dictionary<IntType, string> GetTypeDictionary() @@ -298,6 +303,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 +320,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