using System;
using HDL_ON.UI.UI2.Intelligence.Automation.LogicView;
using Shared;
namespace HDL_ON.UI.UI2.PersonalCenter.PirDevice.View
{
public class MainView
{
///
/// 主空间
///
public FrameLayout pirDeviceFLayout = new FrameLayout
{
Y = Application.GetRealHeight(12),
X = Application.GetRealWidth(16),
Width = Application.GetRealWidth(343),
Height = Application.GetRealHeight(187),
BackgroundColor = CSS.CSS_Color.view,
Radius = (uint)Application.GetRealHeight(12),
};
///
/// 设备管理
///
public Button text1Btn = new Button
{
Y = Application.GetRealHeight(11),
X = Application.GetRealWidth(16),
Width = Application.GetRealWidth(120),
Height = Application.GetRealHeight(20),
TextSize = TextSize.text14,
TextColor = CSS.CSS_Color.textConfirmColor,
TextAlignment = TextAlignment.CenterLeft,
TextID = StringId.shebeigaunli,
IsBold = true,
};
///
/// 图标
///
public Button pirIcon = new Button
{
Y = Application.GetRealHeight(47),
X = Application.GetRealWidth(28),
Width = Application.GetRealWidth(66),
Height = Application.GetRealWidth(66),
UnSelectedImagePath = "PirIcon/Infraredtreasure.png",
};
///
/// mini智能遥控器
///
public Button text2Btn = new Button
{
Y = Application.GetRealHeight(70),
X = Application.GetRealWidth(112),
Width = Application.GetRealWidth(120),
Height = Application.GetRealHeight(20),
TextSize = TextSize.text14,
TextColor = CSS.CSS_Color.textTipColor,
TextAlignment = TextAlignment.CenterLeft,
Text = "mini智能遥控器",
};
///
/// 红外宝数量
///
public Button numberDeviceBtn = new Button
{
Y = Application.GetRealHeight(137),
X = Application.GetRealWidth(32),
Width = Application.GetRealWidth(100),
Height = Application.GetRealHeight(20),
TextSize = TextSize.text14,
TextColor = CSS.CSS_Color.textColor,
TextAlignment = TextAlignment.CenterLeft,
Text = "1" + Language.StringByID(StringId.ge),
IsBold = true,
};
///
/// 当前红外遥控设备
///
public Button numberDeviceTextBtn = new Button
{
Y = Application.GetRealHeight(137 + 20) + Application.GetRealHeight(4),
X = Application.GetRealWidth(32),
Width = Application.GetRealWidth(100),
Height = Application.GetRealHeight(14),
TextSize = TextSize.text10,
TextColor = CSS.CSS_Color.textCancelColor,
TextAlignment = TextAlignment.CenterLeft,
TextID = StringId.dangqianhongwaishebei,
};
///
/// 所有红外宝的遥控器数量
///
public Button currDeviceNumberControlBtn = new Button
{
Y = Application.GetRealHeight(137),
X = Application.GetRealWidth(198),
Width = Application.GetRealWidth(80),
Height = Application.GetRealHeight(20),
TextSize = TextSize.text14,
TextColor = CSS.CSS_Color.textColor,
TextAlignment = TextAlignment.CenterLeft,
Text = "1" + Language.StringByID(StringId.ge),
IsBold = true,
};
///
/// 已添加遥控器
///
public Button currDeviceNumberControlTextBtn = new Button
{
Y = Application.GetRealHeight(137 + 20) + Application.GetRealHeight(4),
X = Application.GetRealWidth(198),
Width = Application.GetRealWidth(80),
Height = Application.GetRealHeight(14),
TextSize = TextSize.text10,
TextColor = CSS.CSS_Color.textCancelColor,
TextAlignment = TextAlignment.CenterLeft,
TextID = StringId.yitianjiayaokongqi,
};
///红外宝点击事件
public Button clickBtn = new Button();
public void Show(FrameLayout middFLayout)
{
middFLayout.AddChidren(pirDeviceFLayout);
pirDeviceFLayout.AddChidren(text1Btn);
pirDeviceFLayout.AddChidren(pirIcon);
pirDeviceFLayout.AddChidren(text2Btn);
pirDeviceFLayout.AddChidren(numberDeviceBtn);
pirDeviceFLayout.AddChidren(numberDeviceTextBtn);
pirDeviceFLayout.AddChidren(currDeviceNumberControlBtn);
pirDeviceFLayout.AddChidren(currDeviceNumberControlTextBtn);
pirDeviceFLayout.AddChidren(clickBtn);
}
}
}