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());
|
}
|
}
|
}
|