| | |
| | | { |
| | | try |
| | | { |
| | | var f = new SpatialInfo("FLOOR") { roomName = floorName, parentId = DB_ResidenceData.Instance.CurrentRegion.RegionID }; |
| | | var f = new SpatialInfo("FLOOR") { roomName = floorName, parentId = DB_ResidenceData.Instance.CurrentRegion.id }; |
| | | var addResult = SpatialInfo.CurrentSpatial.AddFloor(f, out f); |
| | | if (addResult == DAL.Server.StateCode.SUCCESS) |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | LoadFloorRow(f); |
| | | int count2 = SpatialInfo.CurrentSpatial.FloorList.Count > 8 ? 8 : SpatialInfo.CurrentSpatial.FloorList.Count; |
| | | var contentViewHeight = (count2 + 1) * Application.GetRealHeight(50); |
| | | contentView.Height = contentViewHeight; |
| | | floorsListView.Height = count2 * Application.GetRealHeight(50); |
| | | |
| | | }); |
| | | } |
| | | } |