From 9ed4d6675aa1f0abe20e3f84e92f5ac2da8ab4f4 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期六, 12 十二月 2020 20:02:00 +0800 Subject: [PATCH] 20201212-4 --- HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPageBLL.cs | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPageBLL.cs index 31d49cf..7e32122 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPageBLL.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPageBLL.cs @@ -51,7 +51,7 @@ }.Show(bodyView); return; } - foreach (var tempRoom in DB_ResidenceData.residenceData.Rooms) + foreach (var tempRoom in SpatialInfo.CurrentSpatial.RoomList) { if (room.roomName == tempRoom.roomName) { @@ -59,7 +59,7 @@ return; } } - var addResult = SpatialInfo.CurrentSpatial.AddRoom(room); + var addResult = SpatialInfo.CurrentSpatial.AddRoom(room,out room); if (addResult == StateCode.SUCCESS) { backAction(); @@ -73,7 +73,7 @@ var delResult = SpatialInfo.CurrentSpatial.DelRoom(room); if (delResult == StateCode.SUCCESS) { - foreach (var f in DB_ResidenceData.functionList.GetAllFunction()) + foreach (var f in FunctionList.List.GetDeviceFunctionList()) { if (f.roomIds.Contains(room.roomId)) { @@ -129,7 +129,7 @@ EventHandler<MouseEventArgs> eventHandler = (sender, e) => { List<string> roomNameList = new List<string>(); - foreach (var rroom in DB_ResidenceData.residenceData.Rooms) + foreach (var rroom in SpatialInfo.CurrentSpatial.RoomList) { roomNameList.Add(rroom.roomName); } -- Gitblit v1.8.0