| | |
| | | { |
| | | try |
| | | { |
| | | var oldName = floor.roomName; |
| | | floor.roomName = newName; |
| | | var editResult = SpatialInfo.CurrentSpatial.UpdateFloor(floor); |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | if (editResult == DAL.Server.StateCode.SUCCESS) |
| | | { |
| | | floor.roomName = newName; |
| | | btn.Text = newName; |
| | | } |
| | | else |
| | | { |
| | | floor.roomName = oldName; |
| | | } |
| | | }); |
| | | } |
| | |
| | | finally |
| | | { |
| | | Application.RunOnMainThread(() => { |
| | | waitPage.Hide(); |
| | | waitPage.RemoveFromParent(); |
| | | if (waitPage != null) |
| | | { |
| | | waitPage.RemoveFromParent(); |
| | | waitPage = null; |
| | | } |
| | | }); |
| | | } |
| | | }) |
| | |
| | | if (row.Tag.ToString() == btn.Tag.ToString()) |
| | | { |
| | | row.RemoveFromParent(); |
| | | floorsListView.Height = SpatialInfo.CurrentSpatial.FloorList.Count > 8 ? 8 : SpatialInfo.CurrentSpatial.FloorList.Count; |
| | | int count = SpatialInfo.CurrentSpatial.FloorList.Count > 8 ? 8 : SpatialInfo.CurrentSpatial.FloorList.Count; |
| | | var contentViewHeight = (count + 1) * Application.GetRealHeight(50); |
| | | contentView.Height = contentViewHeight; |
| | | floorsListView.Height = count * Application.GetRealHeight(50); |
| | | } |
| | | } |
| | | } |