using System; using System.Collections.Generic; using System.Text; namespace Shared.Phone.UserCenter.OtherParty { /// /// 第三方账号的菜单界面 /// public class OtherPartyAccountMenuForm : EditorCommonForm { #region ■ 变量声明___________________________ #endregion #region ■ 初始化_____________________________ /// /// 画面显示(底层会固定调用此方法,借以完成画面创建) /// public void ShowForm() { //设置头部信息 base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uOtherPartyAccount)); //初始化中部信息 this.InitMiddleFrame(); } /// /// 初始化中部信息 /// private void InitMiddleFrame() { //清空bodyFrame this.ClearBodyFrame(); var frameBack = new FrameListControl(12); frameBack.Height = Application.GetRealHeight(317); frameBack.BackgroundColor = UserCenterColor.Current.White; bodyFrameLayout.AddChidren(frameBack); var rowChat = new FrameRowControl(frameBack.rowSpace / 2); rowChat.Y = Application.GetRealHeight(11); frameBack.AddChidren(rowChat); //微信 var btnChat = rowChat.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uWebChat), 400, 60); btnChat.Y = Application.GetRealHeight(12) + rowChat.chidrenYaxis; btnChat.TextSize = 15; rowChat.AddChidren(btnChat, ChidrenBindMode.BindEventOnly); //未授权 var btnTip1 = rowChat.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uNotAuthentication), 400, 49); btnTip1.Y = Application.GetRealHeight(72) + rowChat.chidrenYaxis; btnTip1.TextSize = 12; btnTip1.TextColor = UserCenterColor.Current.TextGrayColor1; rowChat.AddChidren(btnTip1, ChidrenBindMode.BindEventOnly); //向右图标 rowChat.AddRightArrow(); //底线 rowChat.AddBottomLine(); //请绑定 rowChat.AddMostRightView(Language.StringByID(R.MyInternationalizationString.uPleaseBind), 400); rowChat.ButtonClickEvent += (sender, e) => { }; var rowQQ = new FrameRowControl(frameBack.rowSpace / 2); frameBack.AddChidren(rowQQ); //微信 var btnQQ = rowQQ.AddLeftCaption("QQ", 400, 60); btnQQ.Y = Application.GetRealHeight(12) + rowQQ.chidrenYaxis; btnQQ.TextSize = 15; rowQQ.AddChidren(btnQQ, ChidrenBindMode.BindEventOnly); //未授权 var btnTip2 = rowQQ.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uNotAuthentication), 400, 49); btnTip2.Y = Application.GetRealHeight(72) + rowQQ.chidrenYaxis; btnTip2.TextSize = 12; btnTip2.TextColor = UserCenterColor.Current.TextGrayColor1; rowQQ.AddChidren(btnTip2, ChidrenBindMode.BindEventOnly); //向右图标 rowQQ.AddRightArrow(); //请绑定 rowQQ.AddMostRightView(Language.StringByID(R.MyInternationalizationString.uPleaseBind), 400); rowQQ.ButtonClickEvent += (sender, e) => { }; } #endregion #region ■ 一般方法___________________________ #endregion } }