From dbc23459fdf4e8b74a5f955fbb9fc631b4babc70 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期三, 17 三月 2021 11:56:16 +0800 Subject: [PATCH] Merge branch 'temp-wxr' into WJC --- HDL_ON/UI/UI2/4-PersonalCenter/AddDevice/AddThirdPartyDeviceMenuListPage.cs | 92 ++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 92 insertions(+), 0 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddDevice/AddThirdPartyDeviceMenuListPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddDevice/AddThirdPartyDeviceMenuListPage.cs new file mode 100644 index 0000000..58b0c30 --- /dev/null +++ b/HDL_ON/UI/UI2/4-PersonalCenter/AddDevice/AddThirdPartyDeviceMenuListPage.cs @@ -0,0 +1,92 @@ +锘縰sing HDL_ON.Stan; +using Shared; +using System; +using System.Collections.Generic; +using System.Text; + +namespace HDL_ON.UI +{ + /// <summary> + /// 娣诲姞绗笁鏂硅澶囩殑鑿滃崟鍒楄〃鐣岄潰 + /// </summary> + public class AddThirdPartyDeviceMenuListPage : EditorCommonForm + { + #region 鈻� 鍙橀噺澹版槑___________________________ + + #endregion + + #region 鈻� 鍒濆鍖朹____________________________ + + /// <summary> + /// 鐢婚潰鏄剧ず(搴曞眰浼氬浐瀹氳皟鐢ㄦ鏂规硶锛屽�熶互瀹屾垚鐢婚潰鍒涘缓) + /// </summary> + /// <param name="i_div"> + /// <para>Evoyo:Evoyo鐨勮澶�</para> + /// <para>Yingshi:钀ょ煶璁惧</para> + /// <para>Tuya:娑傞甫璁惧</para></param> + public void ShowForm(string i_div) + { + //璁剧疆澶撮儴淇℃伅 + base.SetTitleText(Language.StringByID(StringId.AddDevice)); + + //鍒濆鍖栦腑閮ㄤ俊鎭� + this.InitMiddleFrame(i_div); + } + + /// <summary> + /// 鍒濆鍖栦腑閮ㄤ俊鎭� + /// </summary> + private void InitMiddleFrame(string i_div) + { + //鍒楄〃瀹瑰櫒 + var listView = new VerticalListControl(); + listView.BackgroundColor = CSS.CSS_Color.MainBackgroundColor; + listView.Height = bodyFrameLayout.Height; + bodyFrameLayout.AddChidren(listView); + + //Evoyo鐨勮澶� + if (i_div == "Evoyo") + { + //鍒濆鍖朎voyo璁惧鑿滃崟 + this.InitEvoyoDeviceListMenu(listView); + } + //钀ょ煶璁惧 + else if (i_div == "Yingshi") + { + } + //娑傞甫璁惧 + else if (i_div == "Tuya") + { + } + } + + #endregion + + #region 鈻� 鍒濆鍖朎voyo璁惧鑿滃崟________________ + + /// <summary> + /// 鍒濆鍖朎voyo璁惧鑿滃崟 + /// </summary> + /// <param name="listView"></param> + private void InitEvoyoDeviceListMenu(VerticalListControl listView) + { + //mini鏅鸿兘閬ユ帶鍣� + var rowMini = new RowLayoutControl(); + listView.AddChidren(rowMini); + rowMini.frameTable.AddLeftIcon(32, "PersonalCenter/AddDevice/MiniRemoteControlMenuIcon.png"); + var btnMiniView = rowMini.frameTable.AddLeftCaption(Language.StringByID(StringId.MiniIntelligentRemoteControl), 250); + btnMiniView.TextColor = CSS.CSS_Color.FirstLevelTitleColor; + rowMini.frameTable.AddRightArrow(); + rowMini.frameTable.ButtonClickEvent += (sender, e) => + { + var form = new AddMiniRemoteControlDirection1Page(); + form.AddForm(); + }; + + //璋冩暣妗屽竷鐪熷疄楂樺害 + listView.AdjustRealHeight(0); + } + + #endregion + } +} -- Gitblit v1.8.0