陈嘉乐
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
using System;
using Shared;
namespace HDL_ON.UI.UI2.Intelligence.Automation
{
    public class TimeTpye : FrameLayout
    {
        public TimeTpye()
        {
        }
 
        public void Show()
        {
            LogicView.TopView topView = new LogicView.TopView();
            this.AddChidren(topView.TopFLayoutView());
            topView.clickBackBtn.MouseUpEventHandler += (e, sen) =>
            {
                RemoveFromParent();
            };
            topView.topNameBtn.TextID = StringId.selectionTimeCondition;
 
            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);
 
            //时刻
            LogicView.SelectType timeView = new LogicView.SelectType();
            timeView.btnIcon.Visible = false;
            timeView.btnText.X = Application.GetRealWidth(16);
            timeView.btnText.TextID = StringId.hour;
            viewLayout.AddChidren(timeView.FLayoutView());
            //时间范围
            LogicView.SelectType functionView = new LogicView.SelectType();
            functionView.frameLayout.Y = timeView.frameLayout.Bottom;
            functionView.btnIcon.Visible = false;
            functionView.btnText.X = Application.GetRealWidth(16);
            functionView.btnText.TextID = StringId.timeHorizon;
            viewLayout.AddChidren(functionView.FLayoutView());
        }
    }
}