using System;
|
using Shared;
|
namespace HDL_ON.UI.UI2.Intelligence.Automation
|
{
|
public class AddInputType : FrameLayout
|
{
|
public AddInputType()
|
{
|
Tag = "Logic";
|
}
|
public void Show()
|
{
|
|
LogicView.TopView topView = new LogicView.TopView();
|
this.AddChidren(topView.FLayoutView());
|
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.SelectTypeView timeView = new LogicView.SelectTypeView();
|
timeView.btnText.TextID = StringId.time;
|
timeView.btnIcon.UnSelectedImagePath = "LogicIcon/timeicon.png";
|
viewLayout.AddChidren(timeView.FLayoutView());
|
|
//功能
|
LogicView.SelectTypeView functionView = new LogicView.SelectTypeView();
|
functionView.frameLayout.Y = timeView.frameLayout.Bottom;
|
functionView.btnText.TextID = StringId.funLogic;
|
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;
|
|
};
|
|
functionView.btnClick.MouseUpEventHandler += (sen, e) => {
|
FunTpye funTpye = new FunTpye();
|
MainPage.BasePageView.AddChidren(funTpye);
|
funTpye.Show(LogicMethod.condition_if);
|
MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
|
|
};
|
#endregion
|
|
}
|
}
|
}
|