wxr
2021-07-01 43b0d5870d528f23ecd6aeceb6cfd4325188b46f
HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberManagementPage.cs
old mode 100755 new mode 100644
@@ -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()
                {
@@ -138,7 +143,7 @@
                    IsBold = true,
                    //Text = memberInfo.UserName,
                    Text = HDLCommon.Current.GetUserName(memberInfo.memberName)
            };
                };
                view1.AddChidren(btnMemberName);
                var btnMemberEmail = new Button()
@@ -239,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) =>
                {
@@ -264,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
            }
        }
    }