From 62d77d3bb8e7215d9da9ecf6f5aeda0b69f805f8 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期二, 08 十二月 2020 18:57:15 +0800 Subject: [PATCH] 20201208 --- HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberFunctionPermissionPage.cs | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberFunctionPermissionPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberFunctionPermissionPage.cs index fb69eb6..1e50762 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberFunctionPermissionPage.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberFunctionPermissionPage.cs @@ -119,7 +119,7 @@ Y = Application.GetRealHeight(519 + 64), Gravity = Gravity.CenterHorizontal, Width = Application.GetRealWidth(220), - Height = Application.GetRealHeight(44), + Height = Application.GetRealWidth(44), BackgroundColor = CSS_Color.MainColor, TextAlignment = TextAlignment.Center, TextColor = CSS_Color.MainBackgroundColor, @@ -148,7 +148,7 @@ void LoadFunctionRow(List<ShareData> shareDatas) { contentView.RemoveAll(); - foreach (var function in room.functions) + foreach (var function in room.GetRoomFunctions(false)) { var roomView = new FrameLayout() { @@ -180,7 +180,7 @@ Tag = "ChooseIcon" }; roomView.AddChidren(btnChoose); - if (shareDatas.Find((obj) => obj.ShareName == function.sid) != null) + if (shareDatas.Find((obj) => obj.shareTypeId == function.deviceId) != null) { btnChoose.IsSelected = true; } @@ -194,12 +194,12 @@ var btnLine = new Button() { Gravity = Gravity.CenterHorizontal, - Y = Application.GetRealHeight(49), - Height = Application.GetMinReal(1), + //Y = Application.GetRealHeight(49), + Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor, }; - roomView.AddChidren(btnLine); + contentView.AddChidren(btnLine); } } -- Gitblit v1.8.0