| | |
| | | /// 用户身份
|
| | | /// </summary>
|
| | | private NormalViewControl btnAuthority = null;
|
| | | /// <summary>
|
| | | /// 用户头像
|
| | | /// </summary>
|
| | | private IconViewControl btnUserIcon = null;
|
| | | /// <summary>
|
| | | /// 皇冠
|
| | | /// </summary>
|
| | | private IconViewControl btnImperialCrown = null;
|
| | |
|
| | | #endregion
|
| | |
|
| | |
| | | private void InitUserInfoControl(FrameLayout frameWhite)
|
| | | {
|
| | | //用户头像
|
| | | var btnUserIcon = new IconViewControl(280);
|
| | | this.btnUserIcon = new IconViewControl(280);
|
| | | btnUserIcon.X = Application.GetRealWidth(121);
|
| | | btnUserIcon.UnSelectedImagePath = UserCenterResourse.UserInfo.UserIconFile;
|
| | | bodyFrameLayout.AddChidren(btnUserIcon);
|
| | |
| | | if (UserCenterResourse.UserInfo.AuthorityNo == 1)
|
| | | {
|
| | | //皇冠
|
| | | var btnImperialCrown = new IconViewControl(60);
|
| | | this.btnImperialCrown = new IconViewControl(60);
|
| | | btnImperialCrown.X = Application.GetRealWidth(346);
|
| | | btnImperialCrown.Y = Application.GetRealHeight(475);
|
| | | btnImperialCrown.UnSelectedImagePath = "Center/ImperialCrown.png";
|
| | |
| | | }
|
| | |
|
| | | //用户昵称
|
| | | btnUserName = new NormalViewControl(605, 60, true);
|
| | | this.btnUserName = new NormalViewControl(605, 60, true);
|
| | | btnUserName.X = btnUserIcon.Right + Application.GetRealWidth(5);
|
| | | btnUserName.Y = Application.GetRealHeight(43);
|
| | | if (UserCenterResourse.UserInfo != null)
|
| | |
| | | /// </summary>
|
| | | public override int FormActionAgainEvent()
|
| | | {
|
| | | //不要删除这个函数
|
| | | base.FormActionAgainEvent();
|
| | | //用户头像
|
| | | if (btnUserIcon.UnSelectedImagePath != UserCenterResourse.UserInfo.UserIconFile)
|
| | | {
|
| | | btnUserIcon.UnSelectedImagePath = UserCenterResourse.UserInfo.UserIconFile;
|
| | | }
|
| | | //用户名字
|
| | | btnUserName.Text = UserCenterResourse.UserInfo.UserName;
|
| | | if (UserCenterResourse.UserInfo != null)
|
| | |
| | | //用户身份
|
| | | btnAuthority.Text = UserCenterResourse.UserInfo.AuthorityText;
|
| | | }
|
| | | if (this.btnImperialCrown != null)
|
| | | {
|
| | | //皇冠
|
| | | if (UserCenterResourse.UserInfo.AuthorityNo != 1)
|
| | | {
|
| | | this.btnImperialCrown.Visible = false;
|
| | | }
|
| | | else
|
| | | {
|
| | | this.btnImperialCrown.Visible = true;
|
| | | }
|
| | | }
|
| | |
|
| | | //初始化主菜单的控件
|
| | | this.InitMainMenuInfoControl(frameWhiteBack);
|
| | |
|