| | |
| | | frame.Height = Application.GetRealHeight(1097);
|
| | | frame.BackgroundColor = UserCenterColor.Current.White;
|
| | | frame.Gravity = Gravity.Center;
|
| | | frame.Radius = (uint)Application.GetMinRealAverage(6);
|
| | | frame.Radius = 6;
|
| | | bodyFrameLayout.AddChidren(frame);
|
| | |
|
| | | //用户图标
|
| | |
| | | btnAuthority.TextAlignment = TextAlignment.Center; |
| | | btnAuthority.Y = Application.GetRealHeight(400); |
| | | btnAuthority.TextColor = UserCenterColor.Current.TextGrayColor;
|
| | | btnAuthority.TextID = R.MyInternationalizationString.uMember;
|
| | | if (memberInfo.AccountType == 1)
|
| | | {
|
| | | btnAuthority.TextID = R.MyInternationalizationString.Administrator;
|
| | | }
|
| | | else
|
| | | {
|
| | | btnAuthority.TextID = R.MyInternationalizationString.uMember;
|
| | | }
|
| | | btnAuthority.TextSize = 12;
|
| | | frame.AddChidren(btnAuthority);
|
| | |
|
| | | //成员授权成功
|
| | | |
| | | var btnMsg = new NormalViewControl(frame.Width, Application.GetRealHeight(81), false);
|
| | | btnMsg.TextID = R.MyInternationalizationString.uMemberAuthorizationSuccess;
|
| | | if (memberInfo.AccountType == 1)
|
| | | {
|
| | | //授权成功!
|
| | | btnMsg.TextID = R.MyInternationalizationString.uMemberAuthorizationSuccess;
|
| | | }
|
| | | else
|
| | | {
|
| | | //取消成功
|
| | | btnMsg.TextID = R.MyInternationalizationString.uCancelSuccess;
|
| | | }
|
| | | btnMsg.Y = Application.GetRealHeight(541);
|
| | | btnMsg.TextAlignment = TextAlignment.Center;
|
| | | btnMsg.TextSize = 20;
|
| | | frame.AddChidren(btnMsg);
|
| | |
|
| | | //该成员已成为管理员,您的控制权已移交
|
| | | string strMsg = Language.StringByID(R.MyInternationalizationString.uSubAccountLevelIsUpAndLetAuthorization);
|
| | | if (strMsg.Contains("{0}") == true)
|
| | | {
|
| | | strMsg = string.Format(strMsg, "\r\n", "\r\n");
|
| | | }
|
| | | var btnView = new NormalViewControl(frame.Width, Application.GetRealHeight(147), false);
|
| | | btnView.Y = Application.GetRealHeight(622);
|
| | | var btnView = new NormalViewControl(frame.Width, Application.GetRealHeight(50), false);
|
| | | btnView.Y = btnMsg.Bottom;
|
| | | btnView.TextAlignment = TextAlignment.Center;
|
| | | btnView.Text = strMsg;
|
| | | if (memberInfo.AccountType == 1)
|
| | | {
|
| | | //该成员已成为管理员
|
| | | btnView.TextID = R.MyInternationalizationString.uSubAccountLevelIsUp;
|
| | | }
|
| | | else
|
| | | {
|
| | | //该管理员已成为成员
|
| | | btnView.TextID = R.MyInternationalizationString.uSubAccountLevelIsDown;
|
| | | }
|
| | | btnView.TextColor = UserCenterColor.Current.TextGrayColor;
|
| | | btnView.IsMoreLines = true;
|
| | | btnView.TextSize = 12;
|