using System; using Shared.Common; namespace Shared.Phone.UserCenter.Abount { public class SLAForm : EditorCommonForm { /// /// 画面显示(底层会固定调用此方法,借以完成画面创建) /// public void ShowForm() { //设置标题信息 base.SetTitleText(Language.StringByID(R.MyInternationalizationString.SLA)); //初始化中部控件 this.InitMiddleFrame(); } /// /// 初始化中部控件 /// private void InitMiddleFrame() { bodyFrameLayout.BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor; var title = new Button { X = Application.GetRealWidth(58), Y = Application.GetRealHeight(58), Width = Application.GetRealWidth(600), Height = Application.GetRealHeight(58), TextID = R.MyInternationalizationString.SLA_Title, TextAlignment = TextAlignment.CenterLeft, TextColor = ZigbeeColor.Current.GXCTextBlackColor, TextSize = 14 }; title.IsBold = true; bodyFrameLayout.AddChidren(title); var detail=new Button { X = Application.GetRealWidth(58), Y = Application.GetRealHeight(164), Width = Application.GetRealWidth(942), Height = Application.GetRealHeight(800), Text = Language.StringByID(R.MyInternationalizationString.SLA_Detail).Replace("{\\r\\n}","\r\n\r\n"), TextAlignment = TextAlignment.TopLeft, TextColor = ZigbeeColor.Current.GXCTextColor, IsMoreLines=true, TextSize = 12, }; bodyFrameLayout.AddChidren(detail); } } }