From a2927467ebfa938a420f392deb6882b35570fd33 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期二, 01 十二月 2020 16:48:06 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/CJL-NEW'
---
HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs | 255 +++++++++++++++++++++++++--------------------------
1 files changed, 125 insertions(+), 130 deletions(-)
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs
index f014e0b..d888782 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs
@@ -201,13 +201,13 @@
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()
{
@@ -216,7 +216,7 @@
TextAlignment = TextAlignment.Center,
TextColor = CSS_Color.TextualColor,
TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
- Text = MainPage.LoginUser.accountString
+ Text = UserInfo.Current.AccountString
};
personalInfoView.AddChidren(btnEmail);
@@ -227,15 +227,15 @@
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
@@ -254,21 +254,21 @@
contentView.RemoveAll();
#region 浣忓畢淇℃伅鍖哄煙
- //if (!DB_ResidenceData.residenceData.residecenInfo.IsOthreShare)
- //{
- // residenceInfoView = new FrameLayout()
- // {
- // Gravity = Gravity.CenterHorizontal,
- // Width = Application.GetRealWidth(343),
- // Height = Application.GetRealHeight(213),
- // BackgroundColor = CSS_Color.MainBackgroundColor,
- // Radius = (uint)Application.GetRealHeight(12),
- // BorderColor = 0x00FFFFFF,
- // BorderWidth = 0,
- // };
- // contentView.AddChidren(residenceInfoView);
- //}
- //else
+ if (!DB_ResidenceData.residenceData.residecenInfo.IsOthreShare)
+ {
+ residenceInfoView = new FrameLayout()
+ {
+ Gravity = Gravity.CenterHorizontal,
+ Width = Application.GetRealWidth(343),
+ Height = Application.GetRealHeight(213),
+ BackgroundColor = CSS_Color.MainBackgroundColor,
+ Radius = (uint)Application.GetRealHeight(12),
+ BorderColor = 0x00FFFFFF,
+ BorderWidth = 0,
+ };
+ contentView.AddChidren(residenceInfoView);
+ }
+ else
{
residenceInfoView = new FrameLayout()
{
@@ -375,9 +375,8 @@
};
residenceManageView.AddChidren(btnResidenceManageText);
#endregion
-#if stage2
-#region ---鎴愬憳鍖哄煙
+ #region ---鎴愬憳鍖哄煙
residenceMemberView = new FrameLayout()
{
X = residenceManageView.Right,
@@ -406,8 +405,8 @@
TextSize = CSS_FontSize.PromptFontSize_FirstLevel
};
residenceMemberView.AddChidren(btnResidenceMemberText);
-#endregion
-#region ---瀹夋斁鍖哄煙
+ #endregion
+ #region ---瀹夋斁鍖哄煙
residenceArmView = new FrameLayout()
{
X = residenceMemberView.Right,
@@ -435,8 +434,8 @@
TextSize = CSS_FontSize.PromptFontSize_FirstLevel
};
residenceArmView.AddChidren(btnResidenceArmText);
-#endregion
-#region ---鏁版嵁澶囦唤鍖哄煙
+ #endregion
+ #region ---鏁版嵁澶囦唤鍖哄煙
//residenceDataBackupView = new FrameLayout()
//{
// X = Application.GetRealWidth(28 - 24),
@@ -464,9 +463,9 @@
// TextSize = CSS_FontSize.PromptFontSize_FirstLevel
//};
//residenceDataBackupView.AddChidren(btnResidenceDataBackupText);
-#endregion
+ #endregion
-#region ---杈呭姪鍔熻兘鍖哄煙
+ #region ---杈呭姪鍔熻兘鍖哄煙
residenceAuxiliaryFunctionView = new FrameLayout()
{
X = Application.GetRealWidth(28 - 24),
@@ -495,9 +494,9 @@
TextSize = CSS_FontSize.PromptFontSize_FirstLevel
};
residenceAuxiliaryFunctionView.AddChidren(btnResidenceAuxiliaryFunctionText);
-#endregion
+ #endregion
-#region ---娣诲姞鍔熻兘鍖哄煙
+ #region ---娣诲姞鍔熻兘鍖哄煙
residenceAddFunctionView = new FrameLayout()
{
X = residenceAuxiliaryFunctionView.Right,
@@ -525,12 +524,11 @@
TextSize = CSS_FontSize.PromptFontSize_FirstLevel
};
residenceAddFunctionView.AddChidren(btnResidenceAddFunctionText);
-#endregion
-#endif
- }
+ #endregion
+ }
else
{
-#region ---瀹夋斁鍖哄煙
+ #region ---瀹夋斁鍖哄煙
residenceArmView = new FrameLayout()
{
X = Application.GetRealWidth(28 - 24),
@@ -558,8 +556,8 @@
TextSize = CSS_FontSize.PromptFontSize_FirstLevel
};
residenceArmView.AddChidren(btnResidenceArmText);
-#endregion
-#region ---鏁版嵁澶囦唤鍖哄煙
+ #endregion
+ #region ---鏁版嵁澶囦唤鍖哄煙
//residenceDataBackupView = new FrameLayout()
//{
// X = residenceArmView.Right,
@@ -587,9 +585,9 @@
// TextSize = CSS_FontSize.PromptFontSize_FirstLevel
//};
//residenceDataBackupView.AddChidren(btnResidenceDataBackupText);
-#endregion
+ #endregion
-#region ---杈呭姪鍔熻兘鍖哄煙
+ #region ---杈呭姪鍔熻兘鍖哄煙
residenceAuxiliaryFunctionView = new FrameLayout()
{
X = residenceArmView.Right,
@@ -617,106 +615,103 @@
TextSize = CSS_FontSize.PromptFontSize_FirstLevel
};
residenceAuxiliaryFunctionView.AddChidren(btnResidenceAuxiliaryFunctionText);
-#endregion
+ #endregion
}
-#endregion
+ #endregion
-#endregion
+ #endregion
- contentView.ScrollEnabled = false;
-#if stage2
contentView.AddChidren(new Button() { Height = Application.GetRealHeight(8) });
-#region 杞欢璁剧疆鍖哄煙
- softSettingView = new FrameLayout()
- {
- Gravity = Gravity.CenterHorizontal,
- Width = Application.GetRealWidth(343),
- Height = Application.GetRealWidth(88),
- BackgroundColor = CSS_Color.MainBackgroundColor,
- Radius = (uint)Application.GetRealHeight(12),
- BorderColor = 0x00FFFFFF,
- BorderWidth = 0,
- };
- contentView.AddChidren(softSettingView);
+ #region 杞欢璁剧疆鍖哄煙
+ softSettingView = new FrameLayout()
+ {
+ Gravity = Gravity.CenterHorizontal,
+ Width = Application.GetRealWidth(343),
+ Height = Application.GetRealWidth(88),
+ BackgroundColor = CSS_Color.MainBackgroundColor,
+ Radius = (uint)Application.GetRealHeight(12),
+ BorderColor = 0x00FFFFFF,
+ BorderWidth = 0,
+ };
+ contentView.AddChidren(softSettingView);
- Button btnNightViewModeIcon = new Button()
- {
- X = Application.GetRealWidth(12),
- Y = Application.GetRealHeight(10),
- Width = Application.GetMinRealAverage(24),
- Height = Application.GetMinRealAverage(24),
- UnSelectedImagePath = "PersonalCenter/NightViewIcon.png",
- };
- softSettingView.AddChidren(btnNightViewModeIcon);
+ Button btnNightViewModeIcon = new Button()
+ {
+ X = Application.GetRealWidth(12),
+ Y = Application.GetRealHeight(10),
+ Width = Application.GetMinRealAverage(24),
+ Height = Application.GetMinRealAverage(24),
+ UnSelectedImagePath = "PersonalCenter/NightViewIcon.png",
+ };
+ softSettingView.AddChidren(btnNightViewModeIcon);
- btnNightViewModeText = new Button()
- {
- X = Application.GetRealWidth(48),
- Width = Application.GetRealWidth(270),
- Height = Application.GetRealWidth(44),
- TextID = StringId.NightView,
- TextColor = CSS_Color.FirstLevelTitleColor,
- TextSize = CSS_FontSize.TextFontSize,
- TextAlignment = TextAlignment.CenterLeft,
- };
- softSettingView.AddChidren(btnNightViewModeText);
+ btnNightViewModeText = new Button()
+ {
+ X = Application.GetRealWidth(48),
+ Width = Application.GetRealWidth(270),
+ Height = Application.GetRealWidth(44),
+ TextID = StringId.NightView,
+ TextColor = CSS_Color.FirstLevelTitleColor,
+ TextSize = CSS_FontSize.TextFontSize,
+ TextAlignment = TextAlignment.CenterLeft,
+ };
+ softSettingView.AddChidren(btnNightViewModeText);
- Button btnNightViewModeRight = new Button()
- {
- X = Application.GetRealWidth(315),
- Y = Application.GetRealWidth(14),
- Width = Application.GetMinRealAverage(16),
- Height = Application.GetMinRealAverage(16),
- UnSelectedImagePath = "Public/Right.png",
- };
- softSettingView.AddChidren(btnNightViewModeRight);
+ Button btnNightViewModeRight = new Button()
+ {
+ X = Application.GetRealWidth(315),
+ Y = Application.GetRealWidth(14),
+ Width = Application.GetMinRealAverage(16),
+ Height = Application.GetMinRealAverage(16),
+ UnSelectedImagePath = "Public/Right.png",
+ };
+ softSettingView.AddChidren(btnNightViewModeRight);
- var btnSoftSettingViewLine = new Button()
- {
- X = Application.GetRealWidth(48),
- Y = btnNightViewModeText.Bottom,
- Height = Application.GetRealHeight(1),
- BackgroundColor = CSS_Color.DividingLineColor
- };
- softSettingView.AddChidren(btnSoftSettingViewLine);
+ var btnSoftSettingViewLine = new Button()
+ {
+ X = Application.GetRealWidth(48),
+ Y = btnNightViewModeText.Bottom,
+ Height = Application.GetRealHeight(1),
+ BackgroundColor = CSS_Color.DividingLineColor
+ };
+ softSettingView.AddChidren(btnSoftSettingViewLine);
- Button btnGeneralSettingsIcon = new Button()
- {
- X = Application.GetRealWidth(12),
- Y = Application.GetRealWidth(54),
- Width = Application.GetMinRealAverage(24),
- Height = Application.GetMinRealAverage(24),
- UnSelectedImagePath = "PersonalCenter/GeneralSettingsIcon.png",
- };
- softSettingView.AddChidren(btnGeneralSettingsIcon);
+ Button btnGeneralSettingsIcon = new Button()
+ {
+ X = Application.GetRealWidth(12),
+ Y = Application.GetRealWidth(54),
+ Width = Application.GetMinRealAverage(24),
+ Height = Application.GetMinRealAverage(24),
+ UnSelectedImagePath = "PersonalCenter/GeneralSettingsIcon.png",
+ };
+ softSettingView.AddChidren(btnGeneralSettingsIcon);
- btnGeneralSettingsText = new Button()
- {
- X = Application.GetRealWidth(48),
- Y = btnSoftSettingViewLine.Bottom,
- Width = Application.GetRealWidth(270),
- Height = Application.GetRealWidth(44),
- TextID = StringId.GeneralSettings,
- TextColor = CSS_Color.FirstLevelTitleColor,
- TextAlignment = TextAlignment.CenterLeft,
- TextSize = CSS_FontSize.TextFontSize
- };
- softSettingView.AddChidren(btnGeneralSettingsText);
+ btnGeneralSettingsText = new Button()
+ {
+ X = Application.GetRealWidth(48),
+ Y = btnSoftSettingViewLine.Bottom,
+ Width = Application.GetRealWidth(270),
+ Height = Application.GetRealWidth(44),
+ TextID = StringId.GeneralSettings,
+ TextColor = CSS_Color.FirstLevelTitleColor,
+ TextAlignment = TextAlignment.CenterLeft,
+ TextSize = CSS_FontSize.TextFontSize
+ };
+ softSettingView.AddChidren(btnGeneralSettingsText);
- Button btnGeneralSettingsRight = new Button()
- {
- X = Application.GetRealWidth(315),
- Y = Application.GetRealWidth(58),
- Width = Application.GetMinRealAverage(16),
- Height = Application.GetMinRealAverage(16),
- UnSelectedImagePath = "Public/Right.png",
- };
- softSettingView.AddChidren(btnGeneralSettingsRight);
-#endregion
-#endif
+ Button btnGeneralSettingsRight = new Button()
+ {
+ X = Application.GetRealWidth(315),
+ Y = Application.GetRealWidth(58),
+ Width = Application.GetMinRealAverage(16),
+ Height = Application.GetMinRealAverage(16),
+ UnSelectedImagePath = "Public/Right.png",
+ };
+ softSettingView.AddChidren(btnGeneralSettingsRight);
+ #endregion
contentView.AddChidren(new Button() { Height = Application.GetRealHeight(8) });
-#region 鑾峰彇鏀寔
+ #region 鑾峰彇鏀寔
supportView = new FrameLayout()
{
Gravity = Gravity.CenterHorizontal,
@@ -805,11 +800,11 @@
supportView.AddChidren(btnAboutOnRight);
-#endregion
+ #endregion
contentView.AddChidren(new Button() { Height = Application.GetRealHeight(28) });
LoadEventList();
}
}
-}
+}
\ No newline at end of file
--
Gitblit v1.8.0