JLChen
2021-04-16 d2666457d16f6171785596a8a9cb2fb9fb35f84b
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
using System;
using Shared;
namespace HDL_ON.UI.UI2.Intelligence.Automation.LogicView
{
    public class AddOutputInputTextView
    {
        /// <summary>
        /// 主控件
        /// </summary>
        public FrameLayout frameLayout = new FrameLayout
        {
            Height = Application.GetRealHeight(46),
        };
        /// <summary>
        /// 显示(如果/就执行)
        /// </summary>
        public Button btnIf = new Button
        {
            TextSize = TextSize.text16,
            TextColor = CSS.CSS_Color.textColor,
            Width = Application.GetRealWidth(32 + 32+200),
            Height = Application.GetRealHeight(22),
            Y = Application.GetRealHeight(12),
            X = Application.GetRealWidth(TextSize.left16),
            TextAlignment = TextAlignment.CenterLeft,
            TextID = StringId.ifCondition,
            IsBold = true,
        };
        /// <summary>
        /// View
        /// </summary>
        /// <returns></returns>
        public FrameLayout FLayoutView(int flHeight,int btnY)
        {
            frameLayout.Height = Application.GetRealHeight(flHeight);
            btnIf.Y= Application.GetRealHeight(btnY);
            frameLayout.AddChidren(btnIf);
            return frameLayout;
        }
    }
}