gxc
2020-02-28 66a9965c44ecc32a6696abca876ab9d1cd091584
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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);
        }
    }
}