using System;
using Shared;
namespace HDL_ON.UI.UI2.Intelligence.Automation.LogicView
{
public class DateView
{
///
/// 主控件
///
public FrameLayout frameLayout = new FrameLayout
{
Y = Application.GetRealHeight(460),
Height = Application.GetRealHeight(56 + 150),
Width = Application.GetRealWidth(343),
X = Application.GetRealWidth(16),
BackgroundColor = CSS.CSS_Color.view,
Radius = (uint)Application.GetRealHeight(12),
};
///
/// 标题Btn
///
public Button btnTitle = new Button
{
TextID = StringId.timeHorizon,
TextSize = TextSize.text16,
TextColor = CSS.CSS_Color.textColor,
IsBold = true,
Width = Application.GetRealWidth(343 - (52 + 4 + 10) * 2),
Height = Application.GetRealHeight(22),
Y = Application.GetRealHeight(17),
X = Application.GetRealWidth(52 + 4 + 10)
};
///
/// 取消Btn
///
public Button btnCancel = new Button
{
TextID = StringId.cancelSelected,
TextSize = TextSize.text14,
TextColor = CSS.CSS_Color.textCancelColor,
Width = Application.GetRealWidth(52),
Height = Application.GetRealHeight(32),
Y = Application.GetRealHeight(10),
X = Application.GetRealWidth(4)
};
///
/// 确定Btn
///
public Button btnConfirm = new Button
{
TextID = StringId.confirmSelected,
TextSize = TextSize.text14,
TextColor = CSS.CSS_Color.textConfirmColor,
Width = Application.GetRealWidth(52),
Height = Application.GetRealHeight(32),
X = Application.GetRealWidth(343 - 4 - 52),
Y = Application.GetRealHeight(10),
};
///
/// View的方法
///
///
///
public void FLayoutView(FrameLayout fLayout, int i)
{
frameLayout.Y = Application.GetRealHeight(667 - 20 - 56 - 50 * i);
frameLayout.Height = Application.GetRealHeight(56 + 50 * i);
frameLayout.AddChidren(btnTitle);
frameLayout.AddChidren(btnCancel);
frameLayout.AddChidren(btnConfirm);
fLayout.AddChidren(frameLayout);
////界面点击事件
//fLayout.MouseUpEventHandler += (sender, e1) =>
//{
// //移除fLayout界面
// fLayout.RemoveFromParent();
//};
//取消点击事件
}
}
}