using System;
|
using Shared.Common;
|
|
namespace Shared.Phone.UserCenter.Abount
|
{
|
public class SLAForm : EditorCommonForm
|
{
|
/// <summary>
|
/// 画面显示(底层会固定调用此方法,借以完成画面创建)
|
/// </summary>
|
public void ShowForm()
|
{
|
//设置标题信息
|
base.SetTitleText(Language.StringByID(R.MyInternationalizationString.SLA));
|
//初始化中部控件
|
this.InitMiddleFrame();
|
}
|
|
/// <summary>
|
/// 初始化中部控件
|
/// </summary>
|
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);
|
}
|
}
|
}
|