| | |
| | | /// 用户名字
|
| | | /// </summary>
|
| | | private NormalViewControl btnUserName = null;
|
| | | /// <summary>
|
| | | /// 用户身份
|
| | | /// </summary>
|
| | | private NormalViewControl btnAuthority = null;
|
| | |
|
| | | #endregion
|
| | |
|
| | |
| | | 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;
|
| | |
| | | frame.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | //住宅接口不需要特殊的登陆Token
|
| | | var form = new Residence.ResidenceManagementForm();
|
| | | var form = new Residence.ResidenceListForm();
|
| | | form.AddForm();
|
| | | };
|
| | | }
|
| | |
| | | /// <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
|