| | |
| | | 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) ? "不愿意透露姓名的用户" : 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 |