| | |
| | | BackgroundColor = CSS_Color.DividingLineColor, |
| | | }); |
| | | #region 住宅地址 |
| | | var residenceAddressRow = new FrameLayout() |
| | | { |
| | | Y = residenceNameRow.Bottom, |
| | | Height = Application.GetRealHeight(50), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | }; |
| | | contentView.AddChidren(residenceAddressRow); |
| | | var residenceAddressRow = new FrameLayout() |
| | | { |
| | | Y = residenceNameRow.Bottom, |
| | | Height = Application.GetRealHeight(50), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | }; |
| | | contentView.AddChidren(residenceAddressRow); |
| | | |
| | | var btnResidenceAddressTitle = new Button() |
| | | { |
| | | X = Application.GetRealWidth(16), |
| | | Width = Application.GetRealWidth(78), |
| | | TextID = StringId.ResidenceAddress, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | }; |
| | | residenceAddressRow.AddChidren(btnResidenceAddressTitle); |
| | | var btnResidenceAddressTitle = new Button() |
| | | { |
| | | X = Application.GetRealWidth(16), |
| | | Width = Application.GetRealWidth(78), |
| | | TextID = StringId.ResidenceAddress, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | }; |
| | | residenceAddressRow.AddChidren(btnResidenceAddressTitle); |
| | | |
| | | btnLocationAddressIcon = new Button() |
| | | { |
| | | X = Application.GetRealWidth(333), |
| | | Gravity = Gravity.CenterVertical, |
| | | Width = Application.GetMinRealAverage(28), |
| | | Height = Application.GetMinRealAverage(28), |
| | | UnSelectedImagePath = "Public/LocationAddressIcon.png", |
| | | }; |
| | | residenceAddressRow.AddChidren(btnLocationAddressIcon); |
| | | btnLocationAddressIcon = new Button() |
| | | { |
| | | X = Application.GetRealWidth(333), |
| | | Gravity = Gravity.CenterVertical, |
| | | Width = Application.GetMinRealAverage(28), |
| | | Height = Application.GetMinRealAverage(28), |
| | | //UnSelectedImagePath = "Public/LocationAddressIcon.png", |
| | | UnSelectedImagePath = "Public/Edit.png", |
| | | }; |
| | | residenceAddressRow.AddChidren(btnLocationAddressIcon); |
| | | |
| | | btnResidenceAddress = new Button() |
| | | { |
| | | X = Application.GetRealWidth(2) + btnResidenceNameTitle.Right, |
| | | Width = Application.GetRealWidth(200), |
| | | Text = DB_ResidenceData.Instance.CurrentRegion.homeAddress, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.TextualColor, |
| | | }; |
| | | residenceAddressRow.AddChidren(btnResidenceAddress); |
| | | btnResidenceAddress = new Button() |
| | | { |
| | | X = Application.GetRealWidth(2) + btnResidenceNameTitle.Right, |
| | | Width = Application.GetRealWidth(200), |
| | | Text = DB_ResidenceData.Instance.CurrentRegion.homeAddress, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.TextualColor, |
| | | }; |
| | | residenceAddressRow.AddChidren(btnResidenceAddress); |
| | | #endregion |
| | | #region 楼层管理 |
| | | contentView.AddChidren(new Button() { Height = Application.GetRealHeight(8) }); |
| | |
| | | }; |
| | | commissioningAuthorityRow.AddChidren(btnCommissioningAuthoritySwitchIcon); |
| | | |
| | | btnCommissioningAuthoritySwitchIcon.MouseUpEventHandler = (sender, e) => { |
| | | btnCommissioningAuthoritySwitchIcon.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | DB_ResidenceData.Instance.CurrentRegion.debugPerm = !DB_ResidenceData.Instance.CurrentRegion.debugPerm; |
| | | btnCommissioningAuthoritySwitchIcon.IsSelected = DB_ResidenceData.Instance.CurrentRegion.debugPerm; |
| | | new System.Threading.Thread(() => |
| | |
| | | LoadEventList(); |
| | | } |
| | | } |
| | | } |
| | | } |