| | |
| | | rowInfo.MenuRow = rowMenu;
|
| | | //向右图标
|
| | | var btnRight = rowMenu.frameTable.AddMostRightEmptyIcon(58, 58);
|
| | | btnRight.UnSelectedImagePath = "Item/Next.png";
|
| | | btnRight.UnSelectedImagePath = "Item/RightNext.png";
|
| | | btnRight.SelectedImagePath = "Item/Down.png";
|
| | | rowMenu.frameTable.ChangedChidrenBindMode(btnRight, ChidrenBindMode.NotBind);
|
| | |
|
| | |
| | | //pir传感器
|
| | | else if (deviceEnumInfo.ConcreteType == DeviceConcreteType.Sensor_Pir)
|
| | | {
|
| | | if (device is IASZone)
|
| | | {
|
| | | var form = new DevicePirSensor.PirSensorBindTargetSettionForm();
|
| | | form.AddForm((IASZone)device);
|
| | | }
|
| | | else
|
| | | {
|
| | | //pir传感器,他们又搞了个继电器在里面
|
| | | var form = new DeviceFunctionSettionForm();
|
| | | form.AddForm(device, true);
|
| | | }
|
| | | }
|
| | | //中央空调
|
| | | else if (deviceEnumInfo.ConcreteType == DeviceConcreteType.AirConditioner_ZbGateway)
|
| | |
| | | /// <param name="device"></param>
|
| | | private void ReceiveDeviceStatu(CommonDevice device)
|
| | | {
|
| | | lock (dicRowInfo)
|
| | | {
|
| | | if (this.Parent == null)
|
| | | {
|
| | | return;
|
| | | }
|
| | | DeviceObjRowInfo rowInfo = null;
|
| | | if (this.dicRowInfo.ContainsKey(device.DeviceAddr) == true)
|
| | | {
|
| | |
| | | }
|
| | | });
|
| | | }
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 设置全部设备离线
|
| | |
| | | {
|
| | | HdlGatewayReceiveLogic.Current.AddAttributeEvent("DeviceListFormSensor", ReceiveComandDiv.A传感器上报, (device) =>
|
| | | {
|
| | | Application.RunOnMainThread(() =>
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | if (this.dicRowInfo.ContainsKey(device.DeviceAddr) == false)
|
| | | {
|