黄学彪
2020-12-16 0d9f64668fd7350d6a21fd157e32009a96d98134
ZigbeeApp/Shared/Phone/Common/Controls/CompoundControls/SafetySensorStatuControl.cs
File was renamed from ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/SafetySensorStatuControl.cs
@@ -3,7 +3,7 @@
using System.Text;
using ZigBee.Device;
namespace Shared.Phone.UserCenter
namespace Shared.Phone
{
    /// <summary>
    /// 安防传感器状态的自定义控件
@@ -65,7 +65,7 @@
            btnStatu.TextID = R.MyInternationalizationString.uStatu;
            this.AddChidren(btnStatu);
            //线
            var btnLine = new NormalViewControl(Application.GetRealWidth(876), ControlCommonResourse.BottomLineHeight, false);
            var btnLine = new NormalViewControl(Application.GetRealWidth(876), HdlControlResourse.BottomLineHeight, false);
            btnLine.BackgroundColor = UserCenterColor.Current.ButtomLine;
            btnLine.X = Application.GetRealWidth(46);
            btnLine.Y = Application.GetRealHeight(104);
@@ -74,14 +74,14 @@
            var btnDeviceName = new NormalViewControl(400, 58, true);
            btnDeviceName.X = Application.GetRealWidth(46);
            btnDeviceName.Y = Application.GetRealHeight(141);
            btnDeviceName.Text = Common.LocalDevice.Current.GetDeviceEpointName(device);
            btnDeviceName.Text = HdlDeviceCommonLogic.Current.GetDeviceEpointName(device);
            this.AddChidren(btnDeviceName);
            //在线状态
            btnOnline = new NormalViewControl(200, 58, true);
            btnOnline.X = this.Width - Application.GetRealWidth(200 + 46);
            btnOnline.Y = btnDeviceName.Y;
            btnOnline.TextAlignment = TextAlignment.CenterRight;
            this.SetOnlineStatu(Common.LocalDevice.Current.CheckDeviceIsOnline(device));
            this.SetOnlineStatu(HdlDeviceCommonLogic.Current.CheckDeviceIsOnline(device));
            this.AddChidren(btnOnline);
        }