| | |
| | | if(addFloor!= null) |
| | | { |
| | | CurrentSpatial.FloorList.Add(addFloor); |
| | | floor = addFloor; |
| | | } |
| | | } |
| | | var ssd = System.Text.Encoding.UTF8.GetBytes(Newtonsoft.Json.JsonConvert.SerializeObject(CurrentSpatial.FloorList)); |
| | |
| | | |
| | | public void ClearRooms() |
| | | { |
| | | floors.Clear(); |
| | | rooms.Clear(); |
| | | if (floors != null) |
| | | { |
| | | floors.Clear(); |
| | | } |
| | | if (rooms != null) |
| | | { |
| | | rooms.Clear(); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | } |
| | | if (functions.Count == 0) |
| | | { |
| | | foreach (var f in DB_ResidenceData.functionList.GetAllFunction()) |
| | | foreach (var f in FunctionList.List.GetDeviceFunctionList()) |
| | | { |
| | | if (f.roomIds.Contains(roomId) && roomId != null) |
| | | { |
| | |
| | | } |
| | | if (scenes.Count == 0) |
| | | { |
| | | foreach (var s in DB_ResidenceData.functionList.scenes) |
| | | foreach (var s in FunctionList.List.scenes) |
| | | { |
| | | if (s.roomIds.Contains(roomId) && roomId != null) |
| | | { |