using System;
|
using HDL_ON.UI.UI2.Intelligence.Automation.LogicView;
|
using Shared;
|
namespace HDL_ON.UI.UI2.PersonalCenter.PirDevice.View
|
{
|
public class MainView
|
{
|
/// <summary>
|
/// 主空间
|
/// </summary>
|
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),
|
|
};
|
/// <summary>
|
/// 设备管理
|
/// </summary>
|
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,
|
};
|
|
/// <summary>
|
/// 图标
|
/// </summary>
|
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",
|
};
|
|
/// <summary>
|
/// mini智能遥控器
|
/// </summary>
|
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智能遥控器",
|
};
|
|
|
/// <summary>
|
/// 红外宝数量
|
/// </summary>
|
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,
|
};
|
|
/// <summary>
|
/// 当前红外遥控设备
|
/// </summary>
|
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,
|
};
|
|
/// <summary>
|
/// 所有红外宝的遥控器数量
|
/// </summary>
|
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,
|
};
|
|
/// <summary>
|
/// 已添加遥控器
|
/// </summary>
|
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);
|
}
|
|
}
|
}
|