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/MemberManagement/MemberManagementPage.cs | 82 ++++++++++++++++++++++-------------------
1 files changed, 44 insertions(+), 38 deletions(-)
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberManagementPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberManagementPage.cs
old mode 100755
new mode 100644
index 57277aa..0eec00f
--- a/HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberManagementPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberManagementPage.cs
@@ -77,7 +77,8 @@
{
Gravity = Gravity.CenterHorizontal,
Width = Application.GetRealWidth(343),
- Height = Application.GetRealWidth(230),
+ //Height = Application.GetRealWidth(230),
+ Height = Application.GetRealWidth(180),
BackgroundColor = CSS_Color.MainBackgroundColor,
Radius = (uint)Application.GetRealWidth(12),
BorderColor = 0x00000000,
@@ -114,6 +115,10 @@
TextID = StringId.Member
};
userTypeView.AddChidren(btnUserTypeName);
+ if(Language.CurrentLanguage == "English")
+ {
+ userTypeView.X = Application.GetRealWidth(260);
+ }
var memberHeadImageView = new ImageView()
{
@@ -136,7 +141,8 @@
TextColor = CSS_Color.FirstLevelTitleColor,
TextSize = CSS_FontSize.TextFontSize,
IsBold = true,
- Text = memberInfo.nickName
+ //Text = memberInfo.UserName,
+ Text = HDLCommon.Current.GetUserName(memberInfo.memberName)
};
view1.AddChidren(btnMemberName);
@@ -238,13 +244,13 @@
};
view3.AddChidren(btnPermissionRight);
- sView.AddChidren(new Button()
- {
- Gravity = Gravity.CenterHorizontal,
- Height = Application.GetRealWidth(1),
- Width = Application.GetRealWidth(311),
- BackgroundColor = CSS_Color.DividingLineColor,
- });
+ //sView.AddChidren(new Button()
+ //{
+ // Gravity = Gravity.CenterHorizontal,
+ // Height = Application.GetRealWidth(1),
+ // Width = Application.GetRealWidth(311),
+ // BackgroundColor = CSS_Color.DividingLineColor,
+ //});
EventHandler<MouseEventArgs> eHandler = (sender, e) =>
{
@@ -263,38 +269,38 @@
#endregion
- #region 鍒涘缓鍦烘櫙
- var view4 = new FrameLayout()
- {
- Height = Application.GetRealWidth(50),
- };
- sView.AddChidren(view4);
+ //#region 鍒涘缓鍦烘櫙 2020-12-23 闅愯棌鍒涘缓鍦烘櫙鎸夐挳
+ //var view4 = new FrameLayout()
+ //{
+ // Height = Application.GetRealWidth(50),
+ //};
+ //sView.AddChidren(view4);
- var btnCreateSceneTitle = new Button()
- {
- X = Application.GetRealWidth(16),
- Width = Application.GetRealWidth(200),
- TextAlignment = TextAlignment.CenterLeft,
- TextColor = CSS_Color.FirstLevelTitleColor,
- TextSize = CSS_FontSize.TextFontSize,
- TextID = StringId.CreateScene,
- };
- view4.AddChidren(btnCreateSceneTitle);
+ //var btnCreateSceneTitle = new Button()
+ //{
+ // X = Application.GetRealWidth(16),
+ // Width = Application.GetRealWidth(200),
+ // TextAlignment = TextAlignment.CenterLeft,
+ // TextColor = CSS_Color.FirstLevelTitleColor,
+ // TextSize = CSS_FontSize.TextFontSize,
+ // TextID = StringId.CreateScene,
+ //};
+ //view4.AddChidren(btnCreateSceneTitle);
- var btnCreateSceneRight = new Button()
- {
- X = Application.GetRealWidth(287),
- Y = Application.GetRealHeight(4),
- Width = Application.GetMinRealAverage(38),
- Height = Application.GetMinRealAverage(38),
- UnSelectedImagePath = "Public/Switch_2.png",
- SelectedImagePath = "Public/SwitchOn_2.png",
- IsSelected = memberInfo.isAllowCreateScene
- };
- view4.AddChidren(btnCreateSceneRight);
+ //var btnCreateSceneRight = new Button()
+ //{
+ // X = Application.GetRealWidth(287),
+ // Y = Application.GetRealHeight(4),
+ // Width = Application.GetMinRealAverage(38),
+ // Height = Application.GetMinRealAverage(38),
+ // UnSelectedImagePath = "Public/Switch_2.png",
+ // SelectedImagePath = "Public/SwitchOn_2.png",
+ // IsSelected = memberInfo.isAllowCreateScene
+ //};
+ //view4.AddChidren(btnCreateSceneRight);
- LoadView_ChangeCreateSceneState(btnCreateSceneRight, btnCreateSceneTitle, memberInfo);
- #endregion
+ //LoadView_ChangeCreateSceneState(btnCreateSceneRight, btnCreateSceneTitle, memberInfo);
+ //#endregion
}
}
}
--
Gitblit v1.8.0