using System;
using Shared;
namespace HDL_ON.UI.UI2.Intelligence.Automation.LogicView
{
public class AddOutputInputTextView
{
///
/// 主控件
///
public FrameLayout frameLayout = new FrameLayout
{
Height = Application.GetRealHeight(46),
};
///
/// 显示(如果/就执行)
///
public Button btnIf = new Button
{
TextSize = TextSize.text16,
TextColor = CSS.CSS_Color.textColor,
Width = Application.GetRealWidth(32 + 32),
Height = Application.GetRealHeight(22),
Y = Application.GetRealHeight(12),
X = Application.GetRealWidth(TextSize.left16),
TextAlignment = TextAlignment.CenterLeft,
TextID = StringId.ifCondition,
IsBold = true,
};
///
/// (如果/就执行)的方法
///
///
public FrameLayout FLayoutView(int flHeight,int btnY)
{
frameLayout.Height = Application.GetRealHeight(flHeight);
btnIf.Y= Application.GetRealHeight(btnY);
frameLayout.AddChidren(btnIf);
return frameLayout;
}
}
}