From b1b339264a5b4f419fcab381c342bfae560f4f2d Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期三, 09 十二月 2020 15:40:09 +0800 Subject: [PATCH] 2020-12-09 1.修改退出登录方法。 --- 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