using System; using System.Collections.Generic; using System.Text; using ZigBee.Device; namespace Shared.Phone.Category.Controls { /// /// 分类界面的温湿度传感器设备行控件 /// public class DeviceTemperatureRowControl : DeviceRowCommon { #region ■ 初始化_____________________________ /// /// 分类界面的温湿度传感器设备行控件 /// /// 子控件Y轴偏移量(真实值,有些界面需要这种特殊操作) public DeviceTemperatureRowControl(int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis) { } #endregion #region ■ 发送获取状态命令___________________ /// /// 发送获取状态命令 /// public override void SendStatuComand() { //如果住宅为虚拟住宅,此功能无效 if (Common.Config.Instance.Home.IsVirtually == true) { return; } //检测能否发送获取状态命令 if (this.CheckCanSendStatuComand() == true) { (this.device as TemperatureSensor).ReadTemperatureOrHumidity(); } } #endregion } }