From f788a1e320b8505435ed66e2456ddb2d0a838f76 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期四, 19 十一月 2020 19:58:14 +0800 Subject: [PATCH] 2020-11-19 1.优化绑定和解绑页面。2.修改密码功能实现,UI界面实现,接口实现。 --- HDL_ON/UI/UI2/2-Classification/RoomPage.cs | 29 ++++++++++++++++++++--------- 1 files changed, 20 insertions(+), 9 deletions(-) diff --git a/HDL_ON/UI/UI2/2-Classification/RoomPage.cs b/HDL_ON/UI/UI2/2-Classification/RoomPage.cs index 38b0579..411c417 100644 --- a/HDL_ON/UI/UI2/2-Classification/RoomPage.cs +++ b/HDL_ON/UI/UI2/2-Classification/RoomPage.cs @@ -20,24 +20,35 @@ #endregion #region - Room room; - #endregion + static Room room; + Action skipEditPageAction; + Action<Room> ReloadRoomName; + #endregion - public RoomPage(Room r) + public RoomPage(Room r,Action<Room> rrn) { bodyView = this; room = r; + skipEditPageAction = () => + { + LoadEvent_SkipEditRoomPage(); + }; + ReloadRoomName = rrn; + } + /// <summary> + /// 閲嶈浇鐣岄潰 + /// </summary> + void ReLoadPage() + { + bodyView.RemoveAll(); + LoadPage(); } public void LoadPage() { - Action skipAction = () => - { - LoadEvent_SkipEditRoomPage(); - }; bodyView.BackgroundColor = CSS_Color.BackgroundColor; - new TopViewDiv(bodyView,room.name).LoadTopView(room ,skipAction); + new TopViewDiv(bodyView,room.name).LoadTopView(skipEditPageAction); functionListView = new VerticalScrolViewLayout() { @@ -46,7 +57,7 @@ }; bodyView.AddChidren(functionListView); - foreach (var function in room.functions) + foreach (var function in room.GetRoomFunctions(false)) { if (function.functionCategory == FunctionCategory.Sensor) { -- Gitblit v1.8.0