| | |
| | | //温湿度
|
| | | else if (device.Type == DeviceType.TemperatureSensor)
|
| | | {
|
| | | cardContr = new Controls.DeviceTemperatureCardControl();
|
| | | //空气质量传感器 |
| | | //获取设备类型
|
| | | var deviceEnumInfo = Common.LocalDevice.Current.GetMyDeviceEnumInfo(new List<CommonDevice>() { device });
|
| | | if (deviceEnumInfo.ConcreteType == Common.DeviceConcreteType.AirQualitySensor)
|
| | | {
|
| | | cardContr = new Controls.DeviceAirQualitySensorCardControl();
|
| | | }
|
| | | else
|
| | | {
|
| | | cardContr = new Controls.DeviceTemperatureCardControl();
|
| | |
|
| | | }
|
| | | }
|
| | | //门锁
|
| | | else if (device.Type == DeviceType.DoorLock)
|