From d2666457d16f6171785596a8a9cb2fb9fb35f84b Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期五, 16 四月 2021 18:03:54 +0800 Subject: [PATCH] 2021-4-16-1 --- HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/AddOutputInputTextView.cs | 41 +++++++++++++++++++++++++++++++++++++++++ 1 files changed, 41 insertions(+), 0 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/AddOutputInputTextView.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/AddOutputInputTextView.cs new file mode 100644 index 0000000..90736a0 --- /dev/null +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/AddOutputInputTextView.cs @@ -0,0 +1,41 @@ +锘縰sing System; +using Shared; +namespace HDL_ON.UI.UI2.Intelligence.Automation.LogicView +{ + public class AddOutputInputTextView + { + /// <summary> + /// 涓绘帶浠� + /// </summary> + public FrameLayout frameLayout = new FrameLayout + { + Height = Application.GetRealHeight(46), + }; + /// <summary> + /// 鏄剧ず锛堝鏋�/灏辨墽琛岋級 + /// </summary> + public Button btnIf = new Button + { + TextSize = TextSize.text16, + TextColor = CSS.CSS_Color.textColor, + Width = Application.GetRealWidth(32 + 32+200), + Height = Application.GetRealHeight(22), + Y = Application.GetRealHeight(12), + X = Application.GetRealWidth(TextSize.left16), + TextAlignment = TextAlignment.CenterLeft, + TextID = StringId.ifCondition, + IsBold = true, + }; + /// <summary> + /// View + /// </summary> + /// <returns></returns> + public FrameLayout FLayoutView(int flHeight,int btnY) + { + frameLayout.Height = Application.GetRealHeight(flHeight); + btnIf.Y= Application.GetRealHeight(btnY); + frameLayout.AddChidren(btnIf); + return frameLayout; + } + } +} -- Gitblit v1.8.0