gxc
2019-11-12 d1ab259186e2341a0839c87300065e9bb5f14e9c
ZigbeeApp/Shared/Phone/UserCenter/Member/MemberManagementForm.cs
@@ -57,24 +57,31 @@
            btnTopIcon = new MostRightIconControl(69, 69);
            if (memberInfo.AccountType == 1)
            {
                btnTopIcon.UnSelectedImagePath = "Account/HadAuthority.png";
                btnTopIcon.UnSelectedImagePath = "Item/HadAuthority.png";
            }
            else
            {
                btnTopIcon.UnSelectedImagePath = "Account/NotAuthority.png";
                btnTopIcon.UnSelectedImagePath = "Item/NotAuthority.png";
            }
            topFrameLayout.AddChidren(btnTopIcon);
            btnTopIcon.InitControl();
            btnTopIcon.ButtonClickEvent += (sender, e) =>
            {
                //确定取消「{0}」管理员权限?
                string msg = Language.StringByID(R.MyInternationalizationString.uDownSubAccountLevel);
                if (memberInfo.AccountType != 1)
                {
                    //确定授权「{0}」成为管理员?
                    msg = Language.StringByID(R.MyInternationalizationString.uUpSubAccountLevel);
                }
                msg = msg.Replace("{0}", string.IsNullOrEmpty(memberInfo.UserName) == true ? memberInfo.Account : memberInfo.UserName);
                this.ShowMassage(ShowMsgType.Confirm, msg, () =>
                 {
                     this.UpOrDownSubAccountLevel();
                     //二次安全验证,如果没有设置有,直接跳过验证
                     HdlCheckLogic.Current.CheckSecondarySecurity(
                         () => { this.UpOrDownSubAccountLevel(); },
                         () => { this.UpOrDownSubAccountLevel(); });
                 });
            };
        }
@@ -222,10 +229,7 @@
            btnName.TextSize = 15;
            //开关
            var btnSwitch = row.AddMostRightEmptyIcon(104, 63);
            row.ChangedChidrenBindMode(btnSwitch, ChidrenBindMode.NotBind);
            btnSwitch.UnSelectedImagePath = "Item/Switch.png";
            btnSwitch.SelectedImagePath = "Item/SwitchSelected.png";
            var btnSwitch = row.AddMostRightSwitchIcon();
            btnSwitch.ButtonClickEvent += (sender, e) =>
            {
                btnSwitch.IsSelected = !btnSwitch.IsSelected;
@@ -259,7 +263,7 @@
            var memberShardInfo = new MemberShardInfoData();
            row.ButtonClickEvent += (sender, e) =>
            {
                var form = new SharedContent.SearchConfigureSharedListRoomForm();
                var form = new SharedContent.LookSharedListRoomForm();
                form.AddForm(memberInfo, memberShardInfo);
            };
        }
@@ -299,21 +303,18 @@
                //变更权限图标
                if (memberInfo.AccountType == 1)
                {
                    btnTopIcon.UnSelectedImagePath = "Account/HadAuthority.png";
                    btnTopIcon.UnSelectedImagePath = "Item/HadAuthority.png";
                }
                else
                {
                    btnTopIcon.UnSelectedImagePath = "Account/NotAuthority.png";
                    btnTopIcon.UnSelectedImagePath = "Item/NotAuthority.png";
                }
                //变更权限文字
                btnAuthority.TextID = memberInfo.AccountType == 1 ? R.MyInternationalizationString.uMemberHadActionAuthority : R.MyInternationalizationString.uMember;
                //打开显示成功的画面
                if (memberInfo.AccountType == 1)
                {
                    var form = new SubAccountLevelUpSuccessForm();
                    form.AddForm(memberInfo);
                }
                var form = new SubAccountLevelUpSuccessForm();
                form.AddForm(memberInfo);
            });
        }