| | |
| | | using System; |
| | | using HDL_ON.Entity; |
| | | using HDL_ON.UI.CSS; |
| | | using Shared; |
| | | |
| | |
| | | { |
| | | #region 区域控件列表 |
| | | FrameLayout bodyView; |
| | | #endregion |
| | | |
| | | #region 区域变量 |
| | | /// <summary> |
| | | /// 住宅名称显示按钮 |
| | | /// </summary> |
| | | Button btnResidenceName; |
| | | /// <summary> |
| | | /// 住宅名称编辑按钮 |
| | | /// </summary> |
| | | Button btnEditResidenceNameIcon; |
| | | /// <summary> |
| | | /// 住宅地址编辑按钮 |
| | | /// </summary> |
| | | Button btnLocationAddressIcon; |
| | | /// <summary> |
| | | /// 住宅地址 |
| | | /// </summary> |
| | | Button btnResidenceAddress; |
| | | |
| | | /// <summary> |
| | | /// 楼层管理Row |
| | | /// </summary> |
| | |
| | | /// </summary> |
| | | Button btnFloorManagementSkinIcon; |
| | | /// <summary> |
| | | /// 楼层名称显示按钮 |
| | | /// </summary> |
| | | Button btnFloorManagementTitle; |
| | | /// <summary> |
| | | /// 房间管理Row |
| | | /// </summary> |
| | | FrameLayout roomManagementRow; |
| | |
| | | /// 房间管理跳转按钮 |
| | | /// </summary> |
| | | Button btnRoomManagementSkinIcon; |
| | | /// <summary> |
| | | /// 房间名称 |
| | | /// </summary> |
| | | Button btnRoomManagementTitle; |
| | | #endregion |
| | | |
| | | public ResidentialManagePage() |
| | |
| | | }; |
| | | residenceNameRow.AddChidren(btnResidenceNameTitle); |
| | | |
| | | Button btnResidenceName = new Button() |
| | | btnResidenceName = new Button() |
| | | { |
| | | X = Application.GetRealWidth(2)+ btnResidenceNameTitle.Right, |
| | | Width = Application.GetRealWidth(200), |
| | | Text = UserConfig.Instance.CurrentRegion.Name, |
| | | Text = DB_ResidenceData.residenceData.residecenInfo.Name, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.TextualColor, |
| | | }; |
| | | residenceNameRow.AddChidren(btnResidenceName); |
| | | |
| | | Button btnEditResidenceNameIcon; |
| | | btnEditResidenceNameIcon = new Button() |
| | | { |
| | | X = Application.GetRealWidth(333), |
| | |
| | | residenceNameRow.AddChidren(btnEditResidenceNameIcon); |
| | | |
| | | residenceNameRow.AddChidren( |
| | | new Button() { |
| | | new Button() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = Application.GetRealHeight(49), |
| | | Height = Application.GetRealHeight(1), |
| | |
| | | }; |
| | | residenceAddressRow.AddChidren(btnResidenceAddressTitle); |
| | | |
| | | Button btnLocationAddressIcon; |
| | | btnLocationAddressIcon = new Button() |
| | | { |
| | | X = Application.GetRealWidth(333), |
| | |
| | | }; |
| | | residenceAddressRow.AddChidren(btnLocationAddressIcon); |
| | | |
| | | Button btnResidenceAddress; |
| | | btnResidenceAddress = new Button() |
| | | { |
| | | X = Application.GetRealWidth(2) + btnResidenceNameTitle.Right, |
| | | Width = Application.GetRealWidth(200), |
| | | Text = UserConfig.Instance.CurrentRegion.Name, |
| | | Text = DB_ResidenceData.residenceData.residecenInfo.Address, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.TextualColor, |
| | |
| | | }; |
| | | bodyView.AddChidren(floorManagementRow); |
| | | |
| | | Button btnFloorManagementTitle = new Button() |
| | | btnFloorManagementTitle = new Button() |
| | | { |
| | | X = Application.GetRealWidth(16), |
| | | Width = Application.GetRealWidth(308), |
| | |
| | | }; |
| | | bodyView.AddChidren(roomManagementRow); |
| | | |
| | | var btnRoomManagementTitle = new Button() |
| | | btnRoomManagementTitle = new Button() |
| | | { |
| | | X = Application.GetRealWidth(16), |
| | | Width = Application.GetRealWidth(300), |