黄学彪
2019-10-10 2ed75b8b337048e5d75e6d9ec8307633134f02fd
ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserMainForm.cs
@@ -18,6 +18,10 @@
        /// 用户名字
        /// </summary>
        private NormalViewControl btnUserName = null;
        /// <summary>
        /// 用户身份
        /// </summary>
        private NormalViewControl btnAuthority = null;
        #endregion
@@ -127,7 +131,7 @@
            frameWhite.AddChidren(btnUserName);
            //用户身份
            var btnAuthority = new NormalViewControl(605, 60, true);
            this.btnAuthority = new NormalViewControl(605, 60, true);
            btnAuthority.X = btnUserName.X;
            btnAuthority.Y = btnUserName.Bottom;
            btnAuthority.TextColor = UserCenterColor.Current.Gray;
@@ -244,7 +248,7 @@
                frame.ButtonClickEvent += (sender, e) =>
                {
                    //住宅接口不需要特殊的登陆Token
                    var form = new Residence.ResidenceManagementForm();
                    var form = new Residence.ResidenceListForm();
                    form.AddForm();
                };
            }
@@ -397,12 +401,21 @@
        /// <summary>
        /// 自身的上层界面关闭后,它自身处于最上层时,触发的事件
        /// </summary>
        public override void FormActionAgainEvent()
        public override int FormActionAgainEvent()
        {
            //不要删除这个函数
            base.FormActionAgainEvent();
            //用户名字
            btnUserName.Text = UserCenterResourse.UserInfo.UserName;
            if (UserCenterResourse.UserInfo != null)
            {
                //用户身份
                btnAuthority.Text = UserCenterResourse.UserInfo.AuthorityText;
            }
            //初始化主菜单的控件
            this.InitMainMenuInfoControl(frameWhiteBack);
            return 1;
        }
        #endregion