陈嘉乐
2020-12-01 307e554fb2ef6491d08afc58a6c0a852f44b4f46
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
using System;
using Shared;
namespace HDL_ON.UI.UI2.Intelligence.Automation.LogicView
{
    public class LogicAddView
    {
        /// <summary>
        /// 主控件
        /// </summary>
        public FrameLayout frameLayout = new FrameLayout
        {
            Height = Application.GetRealHeight(80),
            Width = Application.GetRealWidth(343),
            BackgroundColor = CSS.CSS_Color.view,
            X = Application.GetRealWidth(LogicView.TextSize.left16),
        };
        /// <summary>
        /// 添加设备类型的图标控件
        /// </summary>
        public Button btnAddIcon= new Button
        {
            Width = Application.GetMinRealAverage(20),
            Height = Application.GetMinRealAverage(20),
            UnSelectedImagePath = "LogicIcon/addconditiontarget.png",
            Y = Application.GetRealHeight(22),
            X = Application.GetRealWidth(162),
        };
        public Button btnClick = new Button
        {
            Height = Application.GetRealHeight(80),
            Width = Application.GetRealWidth(343),
        };
 
        /// <summary>
        /// 返回父控件的方法
        /// </summary>
        /// <returns></returns>
        public FrameLayout FLayoutView()
        {
            frameLayout.AddChidren(btnAddIcon);
            frameLayout.AddChidren(btnClick);
            return frameLayout;
        }
    }
}