| | |
| | | }
|
| | |
|
| | | //算了,这里如果按下保存,则主页需要重新刷新
|
| | | UserView.UserPage.Instance.RefreshForm = true;
|
| | | UserView.UserPage.Instance.RefreshAllForm = true;
|
| | |
|
| | | this.CloseForm();
|
| | | };
|
| | |
| | | {
|
| | | //获取温度传感器
|
| | | if (device is ZigBee.Device.TemperatureSensor && ((ZigBee.Device.TemperatureSensor)device).SensorDiv == 1)
|
| | | {
|
| | | listDevice.Add(device);
|
| | | }
|
| | | //PM2.5是温度和湿度合在同一个端点
|
| | | else if (device.Type == ZigBee.Device.DeviceType.PMSensor)
|
| | | {
|
| | | listDevice.Add(device);
|
| | | }
|
| | |
| | | {
|
| | | listDevice.Add(device);
|
| | | }
|
| | | //新风
|
| | | else if (device.Type == ZigBee.Device.DeviceType.FreshAirHumiditySensor)
|
| | | {
|
| | | listDevice.Add(device);
|
| | | }
|
| | | //PM2.5是温度和湿度合在同一个端点
|
| | | else if (device.Type == ZigBee.Device.DeviceType.PMSensor)
|
| | | {
|
| | | listDevice.Add(device);
|
| | | }
|
| | | }
|
| | | var listSelect = new List<string>() { cloneRoom.HumidityDevice };
|
| | | var form = new SelectDeviceForm();
|