old mode 100755
new mode 100644
File was renamed from ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/SafetySensorStatuControl.cs |
| | |
| | | using System.Text;
|
| | | using ZigBee.Device;
|
| | |
|
| | | namespace Shared.Phone.UserCenter
|
| | | namespace Shared.Phone |
| | | {
|
| | | /// <summary>
|
| | | /// 安防传感器状态的自定义控件
|
| | |
| | | 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);
|
| | |
| | | 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);
|
| | | }
|
| | |
|