From efcffde735fa65ae34bae0bcc86313b74ed0e36c Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期一, 20 五月 2024 13:47:38 +0800 Subject: [PATCH] 优化离线数据 --- HDL_ON/UI/UI2/4-PersonalCenter/CombinedDimming/CombinedDimmingListPage.cs | 17 +++++++++-------- 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/CombinedDimming/CombinedDimmingListPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/CombinedDimming/CombinedDimmingListPage.cs index 351bee9..b630a7e 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/CombinedDimming/CombinedDimmingListPage.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/CombinedDimming/CombinedDimmingListPage.cs @@ -22,7 +22,9 @@ public void LoadPage() { - new TopViewDiv(bodyView, Language.StringByID(StringId.GroupControl)).LoadTopView_AddIcon("CombinedDimming", + var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.GroupControl)); + topView.maginY = 10; + topView.LoadTopView_AddIcon("CombinedDimming", (s, c) => { try @@ -44,8 +46,8 @@ contentView = new VerticalScrolViewLayout() { - Y = Application.GetRealHeight(64), - Height = Application.GetRealHeight(667 - 64), + Y = Application.GetRealHeight(64+10), + Height = Application.GetRealHeight(667 - 64-10), BackgroundColor = CSS_Color.MainBackgroundColor, }; bodyView.AddChidren(contentView); @@ -221,14 +223,13 @@ { Application.RunOnMainThread(() => { - //groupControl.roomIds = newGC.roomIds; - //groupControl.uids = newGC.uids; - var localTemp = FunctionList.List.groupControls.Find((obj) => obj.deviceId == newGC.deviceId); + var localTemp = FunctionList.List.groupControls.Find((obj) => obj.deviceId == newGC.deviceId); localTemp.roomIds = newGC.roomIds; localTemp.uids = newGC.uids; localTemp.sids = newGC.sids; - - btnFunctionLocationInfo.Text = newGC.GetUidListName(); + localTemp.name = newGC.name; + btnFunctionLocationInfo.Text = newGC.GetUidListName(); + btnFunctionName.Text = newGC.name; }); } } -- Gitblit v1.8.0