From 5ceda13fb50f49bbfdcbb8e7cf6d146ea52fdfbd Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期三, 12 五月 2021 15:09:12 +0800 Subject: [PATCH] 增加dvd页面 --- HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs index f0731de..eabce7a 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs @@ -192,12 +192,12 @@ TextAlignment = TextAlignment.Center, TextColor = CSS_Color.FirstLevelTitleColor, TextSize = CSS_FontSize.SubheadingFontSize, - Text = string.IsNullOrEmpty(UserInfo.Current.userName) ? Language.StringByID(StringId.UsersWhoNameIsEmpty) : UserInfo.Current.userName + Text = UserInfo.Current.userName// string.IsNullOrEmpty(UserInfo.Current.userName) ? Language.StringByID(StringId.UsersWhoNameIsEmpty) : UserInfo.Current.userName }; personalInfoView.AddChidren(btnUserName); - if (!string.IsNullOrEmpty( UserInfo.Current.userName)) + if (!string.IsNullOrEmpty( UserInfo.Current.userName) && UserInfo.Current.userName == UserInfo.Current.AccountString) { - btnUserName.Text = UserInfo.Current.userName; ; + btnUserName.Text = Language.StringByID(StringId.UsersWhoNameIsEmpty); } btnEmail = new Button() { @@ -294,7 +294,7 @@ TextAlignment = TextAlignment.CenterLeft, TextColor = CSS_Color.FirstLevelTitleColor, TextSize = CSS_FontSize.EmphasisFontSize_FirstLevel, - Text = DB_ResidenceData.Instance.CurrentRegion.Name, + Text = DB_ResidenceData.Instance.CurrentRegion.homeName, IsBold = true }; residenceInfoView.AddChidren(btnCurResidenceName); @@ -308,7 +308,7 @@ BackgroundImagePath = "PersonalCenter/UserTypebg.png", }; residenceInfoView.AddChidren(userTypeView); - if (Language.CurrentLanguage != "Chinese" && !DB_ResidenceData.Instance.CurrentRegion.IsOthreShare) + if (Language.CurrentLanguage != "Chinese" )//&& !DB_ResidenceData.Instance.CurrentRegion.isOtherShare) { userTypeView.X = Application.GetRealWidth(200); userTypeView.Width = Application.GetRealWidth(180); @@ -321,7 +321,7 @@ Y = Application.GetRealHeight(15), Width = Application.GetMinRealAverage(20), Height = Application.GetMinRealAverage(20), - UnSelectedImagePath = DB_ResidenceData.Instance.CurrentRegion.IsOthreShare + UnSelectedImagePath = DB_ResidenceData.Instance.CurrentRegion.isOtherShare == false ? "PersonalCenter/AdminTypeIcon.png" : "PersonalCenter/MemberTypeIcon.png", }; userTypeView.AddChidren(btnUserTypeIcon); @@ -333,14 +333,14 @@ TextAlignment = TextAlignment.CenterLeft, TextColor = CSS_Color.MainBackgroundColor, TextSize = CSS_FontSize.PromptFontSize_FirstLevel, - TextID = DB_ResidenceData.Instance.CurrentRegion.IsOthreShare + TextID = DB_ResidenceData.Instance.CurrentRegion.isOtherShare == false ? StringId.Administrators : StringId.Member }; userTypeView.AddChidren(btnUserTypeName); #endregion #region 浣忓畢绠$悊 - - if (!DB_ResidenceData.Instance.CurrentRegion.IsOthreShare) + + if (!DB_ResidenceData.Instance.CurrentRegion.isOtherShare) { #region ---浣忓畢绠$悊鍖哄煙 residenceManageView = new FrameLayout() @@ -504,7 +504,7 @@ Width = Application.GetRealWidth(64 + 48), Height = Application.GetRealWidth(64), }; - //residenceInfoView.AddChidren(residenceAddFunctionView); + residenceInfoView.AddChidren(residenceAddFunctionView); btnResidenceAddFunctionIcon = new Button { Gravity = Gravity.CenterHorizontal, -- Gitblit v1.8.0