| | |
| | | //清空bodyFrame
|
| | | this.ClearBodyFrame();
|
| | |
|
| | | //信息提示控件
|
| | | this.msgControl = new MessageManagementControl();
|
| | | msgControl.Y = Application.GetRealHeight(127);
|
| | | msgControl.X = Application.GetRealWidth(953);
|
| | | bodyFrameLayout.AddChidren(this.msgControl);
|
| | |
|
| | | //个人中心
|
| | | var btnTitle = new NormalViewControl(350, 100, true);
|
| | | btnTitle.X = ControlCommonResourse.XXLeft;
|
| | | btnTitle.Y = Application.GetRealHeight(112);
|
| | | btnTitle.TextColor = UserCenterColor.Current.White;
|
| | | btnTitle.TextSize = 24;
|
| | | btnTitle.IsBold = true;
|
| | | btnTitle.TextID = R.MyInternationalizationString.UserCenter;
|
| | | bodyFrameLayout.AddChidren(btnTitle);
|
| | |
|
| | | var btnBack1 = new PicViewControl(1031, 942);
|
| | | btnBack1.Y = btnTitle.Bottom - Application.GetRealHeight(10);
|
| | | btnBack1.UnSelectedImagePath = "Center/MainBack1.png";
|
| | | bodyFrameLayout.AddChidren(btnBack1);
|
| | | var btnBack2 = new PicViewControl(392, 172);
|
| | | btnBack2.X = Application.GetRealWidth(688);
|
| | | btnBack2.UnSelectedImagePath = "Center/MainBack2.png";
|
| | | bodyFrameLayout.AddChidren(btnBack2);
|
| | |
|
| | | //信息提示控件
|
| | | this.msgControl = new MessageManagementControl();
|
| | | msgControl.Y = Application.GetRealHeight(127);
|
| | | msgControl.X = Application.GetRealWidth(953);
|
| | | bodyFrameLayout.AddChidren(this.msgControl);
|
| | |
|
| | | //白框
|
| | | var frameBack = new FrameLayout();
|
| | | frameBack.BackgroundColor = UserCenterColor.Current.BodyFrameLayout;
|
| | | frameBack.Y = Application.GetRealHeight(380);
|
| | | frameBack.Gravity = Gravity.CenterHorizontal;
|
| | | frameBack.Radius = 12;
|
| | | frameBack.Radius = (uint)Application.GetRealHeight(29);
|
| | | frameBack.Width = bodyFrameLayout.Width - Application.GetRealWidth(29 * 2);
|
| | | frameBack.Height = bodyFrameLayout.Height - Application.GetRealHeight(380) + Application.GetRealHeight(100);
|
| | | bodyFrameLayout.AddChidren(frameBack);
|
| | |
| | | form.AddForm();
|
| | | };
|
| | |
|
| | | if (UserCenterResourse.UserInfo.AuthorityNo == 1)
|
| | | //皇冠
|
| | | this.btnImperialCrown = new IconViewControl(60);
|
| | | btnImperialCrown.X = Application.GetRealWidth(346);
|
| | | btnImperialCrown.Y = Application.GetRealHeight(475);
|
| | | btnImperialCrown.UnSelectedImagePath = "Center/ImperialCrown.png";
|
| | | bodyFrameLayout.AddChidren(btnImperialCrown);
|
| | | if (UserCenterResourse.UserInfo.AuthorityNo != 1)
|
| | | {
|
| | | //皇冠
|
| | | this.btnImperialCrown = new IconViewControl(60);
|
| | | btnImperialCrown.X = Application.GetRealWidth(346);
|
| | | btnImperialCrown.Y = Application.GetRealHeight(475);
|
| | | btnImperialCrown.UnSelectedImagePath = "Center/ImperialCrown.png";
|
| | | bodyFrameLayout.AddChidren(btnImperialCrown);
|
| | | btnImperialCrown.Visible = false;
|
| | | }
|
| | |
|
| | | //用户昵称
|
| | | this.btnUserName = new NormalViewControl(605, 60, true);
|
| | | btnUserName.IsBold = true;
|
| | | btnUserName.X = btnUserIcon.Right + Application.GetRealWidth(5);
|
| | | btnUserName.Y = Application.GetRealHeight(43);
|
| | | if (UserCenterResourse.UserInfo != null)
|
| | |
| | | frameMainMenuBack.Gravity = Gravity.CenterHorizontal;
|
| | | frameMainMenuBack.Height = Application.GetRealHeight(371);
|
| | | frameMainMenuBack.Width = frameWhite.Width - Application.GetRealWidth(29 * 2);
|
| | | frameMainMenuBack.Radius = 10;
|
| | | frameMainMenuBack.Radius = (uint)Application.GetRealHeight(17);
|
| | | frameMainMenuBack.BackgroundColor = UserCenterColor.Current.White;
|
| | | frameWhite.AddChidren(frameMainMenuBack);
|
| | | }
|
| | |
| | | //用户身份
|
| | | btnAuthority.Text = UserCenterResourse.UserInfo.AuthorityText;
|
| | | }
|
| | | if (this.btnImperialCrown != null)
|
| | | //皇冠
|
| | | if (UserCenterResourse.UserInfo.AuthorityNo != 1)
|
| | | {
|
| | | //皇冠
|
| | | if (UserCenterResourse.UserInfo.AuthorityNo != 1)
|
| | | {
|
| | | this.btnImperialCrown.Visible = false;
|
| | | }
|
| | | else
|
| | | {
|
| | | this.btnImperialCrown.Visible = true;
|
| | | }
|
| | | this.btnImperialCrown.Visible = false;
|
| | | }
|
| | | else
|
| | | {
|
| | | this.btnImperialCrown.Visible = true;
|
| | | }
|
| | |
|
| | | //刷新信息提示控件
|