| | |
| | | public SpatialInfo(string spatialType) |
| | | { |
| | | roomType = "FLOOR"; |
| | | parentId = UserInfo.Current.CurReginID; |
| | | parentId = DB_ResidenceData.Instance.CurrentRegion.RegionID; |
| | | } |
| | | |
| | | public string roomId = ""; |
| | |
| | | rooms = null; |
| | | } |
| | | |
| | | public void ClearRooms() |
| | | public void Clear() |
| | | { |
| | | if (floors != null) |
| | | if (_currentSpatial != null) |
| | | { |
| | | floors.Clear(); |
| | | } |
| | | if (rooms != null) |
| | | { |
| | | rooms.Clear(); |
| | | if (_currentSpatial.floors != null) |
| | | { |
| | | _currentSpatial.floors.Clear(); |
| | | } |
| | | if (_currentSpatial.rooms != null) |
| | | { |
| | | _currentSpatial.rooms.Clear(); |
| | | } |
| | | _currentSpatial = null; |
| | | } |
| | | } |
| | | |