| | |
| | | /// 区域添加功能小区域文本 |
| | | /// </summary> |
| | | Button btnResidenceAddFunctionText; |
| | | |
| | | /// <summary> |
| | | /// 软件设置区域 |
| | | /// </summary> |
| | |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | Text = string.IsNullOrEmpty(MainPage.LoginUser.userName) ? "不愿意透露姓名的用户" : MainPage.LoginUser.userName |
| | | Text = string.IsNullOrEmpty( UserInfo.Current.userName) ? Language.StringByID(StringId.UsersWhoNameIsEmpty) : UserInfo.Current.userName |
| | | |
| | | }; |
| | | personalInfoView.AddChidren(btnUserName); |
| | | if (!string.IsNullOrEmpty(MainPage.LoginUser.userName)) |
| | | if (!string.IsNullOrEmpty( UserInfo.Current.userName)) |
| | | { |
| | | btnUserName.Text = MainPage.LoginUser.userName; ; |
| | | btnUserName.Text = UserInfo.Current.userName; ; |
| | | } |
| | | btnEmail = new Button() |
| | | { |
| | |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.TextualColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | Text = MainPage.LoginUser.accountString |
| | | Text = UserInfo.Current.AccountString |
| | | }; |
| | | personalInfoView.AddChidren(btnEmail); |
| | | |
| | |
| | | Width = Application.GetMinRealAverage(84), |
| | | Height = Application.GetMinRealAverage(84), |
| | | Radius = (uint)Application.GetMinRealAverage(42), |
| | | ImagePath = MainPage.LoginUser.headImagePagePath |
| | | ImagePath = UserInfo.Current.headImagePagePath |
| | | }; |
| | | bodyView.AddChidren(userHeadImageView); |
| | | //if ( MainPage.LoginUser.headImagePageBytes==null) |
| | | //if ( UserInfo.Current.headImagePageBytes==null) |
| | | //{ |
| | | // userHeadImageView.ImagePath = MainPage.LoginUser.headImagePagePath; |
| | | // userHeadImageView.ImagePath = UserInfo.Current.headImagePagePath; |
| | | //}else |
| | | //{ |
| | | // userHeadImageView.ImageBytes = MainPage.LoginUser.headImagePageBytes; |
| | | // userHeadImageView.ImageBytes = UserInfo.Current.headImagePageBytes; |
| | | //} |
| | | |
| | | #endregion |
| | |
| | | }; |
| | | residenceManageView.AddChidren(btnResidenceManageText); |
| | | #endregion |
| | | |
| | | #region ---成员区域 |
| | | residenceMemberView = new FrameLayout() |
| | | { |
| | |
| | | #endregion |
| | | |
| | | contentView.AddChidren(new Button() { Height = Application.GetRealHeight(8) }); |
| | | |
| | | #region 软件设置区域 |
| | | softSettingView = new FrameLayout() |
| | | { |
| | |
| | | }; |
| | | softSettingView.AddChidren(btnGeneralSettingsRight); |
| | | #endregion |
| | | |
| | | contentView.AddChidren(new Button() { Height = Application.GetRealHeight(8) }); |
| | | #region 获取支持 |
| | | supportView = new FrameLayout() |
| | |
| | | var btnSupportViewLine = new Button() |
| | | { |
| | | X = Application.GetRealWidth(48), |
| | | Y = btnNightViewModeText.Bottom, |
| | | Y = btnSupportText.Bottom, |
| | | Height = Application.GetRealHeight(1), |
| | | BackgroundColor = CSS_Color.DividingLineColor |
| | | }; |
| | |
| | | btnAboutOnText = new Button() |
| | | { |
| | | X = Application.GetRealWidth(48), |
| | | Y = btnSoftSettingViewLine.Bottom, |
| | | Width = Application.GetRealWidth(270), |
| | | Y = btnSupportViewLine.Bottom, |
| | | Width = Application.GetRealWidth(370), |
| | | Height = Application.GetRealWidth(44), |
| | | TextID = StringId.AboutOn, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | |
| | | LoadEventList(); |
| | | } |
| | | } |
| | | } |
| | | } |