| | |
| | | { |
| | | case DeviceType.OnOffSwitch: |
| | | //控制面板 |
| | | ImagePath= "Device/DryContact.png"; |
| | | ImagePath = "Device/DryContact.png"; |
| | | break; |
| | | case DeviceType.OnOffOutput: |
| | | //继电器 |
| | | ImagePath= "Device/Relay.png"; |
| | | ImagePath = "Device/Relay.png"; |
| | | break; |
| | | case DeviceType.DimmableLight: |
| | | //调光灯 |
| | | ImagePath= "Device/DimmableLight.png"; |
| | | ImagePath = "Device/DimmableLight.png"; |
| | | break; |
| | | case DeviceType.WindowCoveringDevice: |
| | | //窗帘 |
| | | ImagePath= "Device/Curtain.png"; |
| | | ImagePath = "Device/Curtain.png"; |
| | | break; |
| | | case DeviceType.Thermostat: |
| | | //空调 |
| | | ImagePath= "Device/AirConditioner.png"; |
| | | ImagePath = "Device/AirConditioner.png"; |
| | | break; |
| | | case DeviceType.IASZone: |
| | | //传感器 |
| | | ImagePath= "Device/Sensor.png"; |
| | | ImagePath = "Device/Sensor.png"; |
| | | break; |
| | | case DeviceType.AirSwitch: |
| | | //空气开关 |
| | | ImagePath= "Device/AirSwitch.png"; |
| | | ImagePath = "Device/AirSwitch.png"; |
| | | break; |
| | | case DeviceType.Repeater: |
| | | //中继器 |
| | | ImagePath = "Device/AirSwitch.png"; |
| | | break; |
| | | case DeviceType.TemperatureSensor: |
| | | //温湿度传感器 |
| | | ImagePath = "Device/Sensor.png"; |
| | | break; |
| | | default: |
| | | ImagePath= "Device/Relay.png"; |
| | | ImagePath = "Device/Relay.png"; |
| | | break; |
| | | } |
| | | return ImagePath; |
| | |
| | | deviceTypeR = R.MyInternationalizationString.DoorLock; |
| | | break; |
| | | |
| | | case DeviceType.TemperatureSensor: |
| | | //温度传感器 |
| | | deviceTypeR = R.MyInternationalizationString.TemperatureAndHumiditySensor; |
| | | break; |
| | | default: |
| | | deviceTypeR = R.MyInternationalizationString.UnknowDevice; |
| | | break; |