| | |
| | | /// <param name="addLine">是否添加底线</param>
|
| | | private void AddRowLayout(Safeguard.ZoneDeviceListData sensorInfo, bool addLine)
|
| | | {
|
| | | CommonDevice device = Common.LocalDevice.Current.GetDevice(sensorInfo.MacAddr, sensorInfo.Epoint);
|
| | | CommonDevice device = HdlDeviceCommonLogic.Current.GetDevice(sensorInfo.MacAddr, sensorInfo.Epoint);
|
| | | if (device == null)
|
| | | {
|
| | | return;
|
| | |
| | |
|
| | | //旁路设置
|
| | | var btnBypass = new NormalViewControl(Application.GetRealWidth(184), rowLayout.Height, false);
|
| | | btnBypass.TextID = R.MyInternationalizationString.uBypass; |
| | | btnBypass.BackgroundColor = 0xff4a4a4a; |
| | | btnBypass.TextColor = UserCenterColor.Current.TextColor3; |
| | | btnBypass.TextID = R.MyInternationalizationString.uBypass;
|
| | | btnBypass.BackgroundColor = 0xff4a4a4a;
|
| | | btnBypass.TextColor = UserCenterColor.Current.TextColor3;
|
| | | btnBypass.TextAlignment = TextAlignment.Center;
|
| | | btnBypass.TextSize = 12;
|
| | | if (sensorInfo.IsBypass == 1)
|
| | |
| | |
|
| | | //删除
|
| | | var btnDelete = new NormalViewControl(Application.GetRealWidth(184), rowLayout.Height, false);
|
| | | btnDelete.TextID = R.MyInternationalizationString.uDelete; |
| | | btnDelete.BackgroundColor = 0xfff75858; |
| | | btnDelete.TextColor = UserCenterColor.Current.TextColor3; |
| | | btnDelete.TextID = R.MyInternationalizationString.uDelete;
|
| | | btnDelete.BackgroundColor = 0xfff75858;
|
| | | btnDelete.TextColor = UserCenterColor.Current.TextColor3;
|
| | | btnDelete.TextAlignment = TextAlignment.Center;
|
| | | btnDelete.TextSize = 12;
|
| | | rowLayout.AddRightView(btnDelete);
|
| | |
| | | private List<CommonDevice> GetCanAddSensorDevice()
|
| | | {
|
| | | List<CommonDevice> listNew = new List<CommonDevice>();
|
| | | List<CommonDevice> listDevices = Common.LocalDevice.Current.listAllDevice;
|
| | | List<CommonDevice> listDevices = HdlDeviceCommonLogic.Current.listAllDevice;
|
| | | foreach (CommonDevice device in listDevices)
|
| | | {
|
| | | //只要传感器
|