陈嘉乐
2020-11-18 50f0a7ce08531e0c5d37f7da243dd54f8dd2fe7b
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
57
58
using System;
using Shared;
namespace HDL_ON.UI.UI2.Intelligence.Automation
{
    public class AddInputType : FrameLayout
    {
        public AddInputType()
        {
        }
        public void Show()
        {
 
            LogicView.TopView topView = new LogicView.TopView();
            this.AddChidren(topView.TopFLayoutView());
            topView.clickBackBtn.MouseUpEventHandler += (e, sen) =>
            {
                RemoveFromParent();
            };
            topView.topNameBtn.TextID = StringId.selectionCondition;
 
            FrameLayout viewLayout = new FrameLayout
            {
                Y = Application.GetRealHeight(64),
                Width = Application.GetRealWidth(LogicView.TextSize.view375),
                Height = Application.GetRealHeight(LogicView.TextSize.view667 - 64),
                BackgroundColor = CSS.CSS_Color.viewMiddle,
            };
            this.AddChidren(viewLayout);
            #region 时间  功能
            //时间
            LogicView.SelectType timeView = new LogicView.SelectType();
            timeView.btnText.TextID = StringId.time;
            timeView.btnIcon.UnSelectedImagePath = "LogicIcon/timeicon.png";
            viewLayout.AddChidren(timeView.FLayoutView());
 
            //功能
            LogicView.SelectType functionView = new LogicView.SelectType();
            functionView.frameLayout.Y = timeView.frameLayout.Bottom;
            functionView.btnText.TextID = StringId.time;
            functionView.btnIcon.UnSelectedImagePath = "LogicIcon/functionicon.png";
            viewLayout.AddChidren(functionView.FLayoutView());
 
            #endregion
 
 
            #region  所有点击事件
            timeView.btnClick.MouseUpEventHandler += (sen, e) => {
                TimeTpye timeTpye = new TimeTpye();
                MainPage.BasePageView.AddChidren(timeTpye);
                timeTpye.Show();
                MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
 
            };
            #endregion
 
        }
    }
}