From 5e5b950e83dff438e64ce7e088aaa31455091b0c Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期三, 07 七月 2021 14:57:42 +0800
Subject: [PATCH] 2021-7-7-1

---
 HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs |   45 +++++++++++++++++++++++++++++++++++++++------
 1 files changed, 39 insertions(+), 6 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs
index 17c99a0..6af040c 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs
@@ -234,9 +234,42 @@
 
             #endregion
 
+            //浣撻獙妯″紡
+            if(MainPage.NoLoginMode)
+            {
+
+                Button btnExit = new Button()
+                {
+                    Y = Application.GetRealHeight(58) + personalInfoView.Bottom,
+                    Height = Application.GetRealHeight(50),
+                    TextAlignment = TextAlignment.Center,
+                    SelectedTextColor = CSS_Color.MainColor,
+                    TextColor = CSS_Color.BackgroundColor,
+                    TextSize = CSS_FontSize.SubheadingFontSize,
+                    TextID = StringId.NextStep,
+                    BackgroundColor = CSS_Color.MainBackgroundColor,
+                    SelectedBackgroundColor = CSS_Color.MainBackgroundColor,
+                };
+                if(Language.CurrentLanguage =="Chinese")
+                {
+                    btnExit.Text = "閫�鍑轰綋楠屾ā寮�";
+                }
+                else
+                {
+                    btnExit.Text = "Exit dome";
+                }
+                btnExit.MouseUpEventHandler = (sender, e) =>
+                {
+                    HDLCommon.Current.Logout();
+                };
+
+                return;
+            }
+
             contentView = new VerticalScrolViewLayout()
             {
                 Y = Application.GetRealHeight(8) + personalInfoView.Bottom,
+
                 Height = Application.GetRealHeight(400),
                 ScrollEnabled = false
             };
@@ -298,7 +331,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);
@@ -312,7 +345,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);
@@ -325,7 +358,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);
@@ -337,14 +370,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()
@@ -749,7 +782,7 @@
 
 
             #region 鏅鸿兘闊崇
-            if (!DB_ResidenceData.Instance.CurrentRegion.IsOthreShare)
+            if (!DB_ResidenceData.Instance.CurrentRegion.isOtherShare)
             {
                 //supportView 鍔犻珮 鏄剧ず3琛� 3*44
                 supportView.Height = Application.GetRealWidth(3*44);

--
Gitblit v1.8.0