| | |
| | | using System; |
| | | using HDL_ON.DAL.Server; |
| | | using HDL_ON.Entity; |
| | | using Shared; |
| | | |
| | |
| | | }; |
| | | dispalyView.AddChidren(contentView); |
| | | |
| | | if (UserInfo.Current.regionList.Count < 3) |
| | | if (UserInfo.Current.regionList.Count < 2) |
| | | { |
| | | |
| | | } |
| | | else if (UserInfo.Current.regionList.Count < 3) |
| | | { |
| | | dispalyView = new FrameLayout() |
| | | { |
| | | X = Application.GetRealWidth(10), |
| | | Y = Application.GetRealHeight(268), |
| | | Width = Application.GetRealWidth(160), |
| | | Height = Application.GetRealHeight(105), |
| | | BackgroundImagePath = "PersonalCenter/HomeList1bg.png", |
| | | }; |
| | | dialogBody.AddChidren(dispalyView); |
| | | |
| | | contentView.Height = Application.GetRealHeight(45 * 2); |
| | | dispalyView.AddChidren(contentView); |
| | | } |
| | | else if (UserInfo.Current.regionList.Count < 4) |
| | | { |
| | |
| | | OnAppConfig.Instance.SaveUserConfig(); |
| | | DB_ResidenceData.InitRoomFunction(); |
| | | DB_ResidenceData.residenceData.SaveResidenceData(); |
| | | //刷新一次住宅网关 |
| | | new HttpServerRequest().GetHomeGatewayList(); |
| | | |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | btnCurResidenceName.Text = DB_ResidenceData.residenceData.residecenInfo.Name; |