old mode 100755
new mode 100644
| | |
| | | { |
| | | try |
| | | { |
| | | var f = new SpatialInfo("FLOOR") { roomName = floorName, parentId = DB_ResidenceData.Instance.CurrentRegion.RegionID }; |
| | | var addResult = SpatialInfo.CurrentSpatial.AddFloor(f,out f); |
| | | if (addResult == DAL.Server.StateCode.SUCCESS) |
| | | var waitPage = new Loading(); |
| | | MainPage.BaseView.AddChidren(waitPage); |
| | | waitPage.Start(Language.StringByID(StringId.PleaseWait)); |
| | | new System.Threading.Thread(() => |
| | | { |
| | | LoadFloorRow(f); |
| | | } |
| | | try |
| | | { |
| | | var f = new SpatialInfo("FLOOR") { roomName = floorName, parentId = DB_ResidenceData.Instance.CurrentRegion.RegionID }; |
| | | var addResult = SpatialInfo.CurrentSpatial.AddFloor(f, out f); |
| | | if (addResult == DAL.Server.StateCode.SUCCESS) |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | LoadFloorRow(f); |
| | | }); |
| | | } |
| | | } |
| | | catch { } |
| | | finally |
| | | { |
| | | Application.RunOnMainThread(() => { |
| | | waitPage.Hide(); |
| | | waitPage.RemoveFromParent(); |
| | | }); |
| | | } |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | } |
| | | catch (Exception ex) |
| | | { |