From 557c8c4f75aafc97533721766272410042440d34 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期六, 21 八月 2021 11:00:29 +0800
Subject: [PATCH] 安防功能
---
HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs | 38 +++++++++++++++++++++++++++++++++++++-
1 files changed, 37 insertions(+), 1 deletions(-)
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs
index 559faa4..1ffbbce 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs
@@ -234,6 +234,42 @@
#endregion
+ //浣撻獙妯″紡
+ if(MainPage.NoLoginMode)
+ {
+ Button btnExit = new Button()
+ {
+ Y = Application.GetRealHeight(288) + personalInfoView.Bottom,
+ Gravity = Gravity.CenterHorizontal,
+ Height = Application.GetRealHeight(60),
+ Width = Application.GetRealWidth(330),
+ TextAlignment = TextAlignment.Center,
+ SelectedTextColor = CSS_Color.MainColor,
+ TextColor = CSS_Color.WarningColor,
+ TextSize = CSS_FontSize.SubheadingFontSize,
+ TextID = StringId.NextStep,
+ Radius = 10,
+ BackgroundColor = CSS_Color.MainBackgroundColor,
+ SelectedBackgroundColor = CSS_Color.MainBackgroundColor,
+ };
+ if(Language.CurrentLanguage =="Chinese")
+ {
+ btnExit.Text = "閫�鍑轰綋楠屾ā寮�";
+ }
+ else
+ {
+ btnExit.Text = "Exit dome";
+ }
+ btnExit.MouseUpEventHandler = (sender, e) =>
+ {
+ MainPage.NoLoginMode = false;
+ UserInfo.Current.ClearUserInfo();
+ HDLCommon.Current.Logout();
+ };
+ bodyView.AddChidren(btnExit);
+ return;
+ }
+
contentView = new VerticalScrolViewLayout()
{
Y = Application.GetRealHeight(8) + personalInfoView.Bottom,
@@ -750,7 +786,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