From 62d77d3bb8e7215d9da9ecf6f5aeda0b69f805f8 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期二, 08 十二月 2020 18:57:15 +0800 Subject: [PATCH] 20201208 --- HDL_ON/UI/UI2/FuntionControlView/ChooseRoomPageBLL.cs | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/ChooseRoomPageBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/ChooseRoomPageBLL.cs index 194cb18..0b17f56 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/ChooseRoomPageBLL.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/ChooseRoomPageBLL.cs @@ -47,7 +47,7 @@ } } function.roomIds.Clear(); - foreach (var room in Entity.DB_ResidenceData.Rooms) + foreach (var room in Entity.DB_ResidenceData.residenceData.Rooms) { if (btnChooseAll.IsSelected) { @@ -57,9 +57,9 @@ { function.roomIds.Remove(room.uid); } - function.SaveFunctionData(); + function.SaveFunctionData(true); } - Entity.DB_ResidenceData.InitRoomFunction(); + Entity.SpatialInfo.CurrentSpatial.InitRoomFunction(); }; } @@ -78,8 +78,8 @@ function.roomIds.Remove(room.uid); room.RemoveRoomFunction(function); } - function.SaveFunctionData(); - if (function.roomIds.Count == Entity.DB_ResidenceData.Rooms.Count) + function.SaveFunctionData(true); + if (function.roomIds.Count == Entity.DB_ResidenceData.residenceData.Rooms.Count) { btnChooseAll.IsSelected = true; } -- Gitblit v1.8.0