From 30b5770f56f99c1f92e933ad31cf7d2af58b033c Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期三, 02 十二月 2020 16:31:48 +0800 Subject: [PATCH] 20201202 --- HDL_ON/UI/UI2/2-Classification/FunctionPage.cs | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/HDL_ON/UI/UI2/2-Classification/FunctionPage.cs b/HDL_ON/UI/UI2/2-Classification/FunctionPage.cs index a5b3858..0704042 100644 --- a/HDL_ON/UI/UI2/2-Classification/FunctionPage.cs +++ b/HDL_ON/UI/UI2/2-Classification/FunctionPage.cs @@ -193,10 +193,10 @@ }; dispalyView.AddChidren(contentView); - if (DB_ResidenceData.rooms.Count < 2) + if (DB_ResidenceData.Rooms.Count < 2) { } - else if (DB_ResidenceData.rooms.Count < 3) + else if (DB_ResidenceData.Rooms.Count < 3) { dispalyView = new FrameLayout() { @@ -211,7 +211,7 @@ contentView.Height = Application.GetRealHeight(45 * 3); dispalyView.AddChidren(contentView); } - else if (DB_ResidenceData.rooms.Count < 4) + else if (DB_ResidenceData.Rooms.Count < 4) { dispalyView = new FrameLayout() { @@ -245,11 +245,11 @@ List<Room> roomList = new List<Room>(); - roomList.Add(new Room() { sid = "", name = Language.StringByID(StringId.All) }); - roomList.AddRange(DB_ResidenceData.rooms); + roomList.Add(new Room() { uid = "", roomName = Language.StringByID(StringId.All) }); + roomList.AddRange(DB_ResidenceData.Rooms); foreach (var tempRoom in roomList) { - var roomName = tempRoom.name; + var roomName = tempRoom.roomName; if (roomName != Language.StringByID(StringId.All)) { contentView.AddChidren(new Button() @@ -288,7 +288,7 @@ var showList = new List<Function>(); foreach (var sf in functionList) { - if(sf.roomIds.Contains(tempRoom.sid)) + if(sf.roomIds.Contains(tempRoom.uid)) { showList.Add(sf); } -- Gitblit v1.8.0