| | |
| | | /// </summary> |
| | | void LoadSensorDiv(Function sensor,int index) |
| | | { |
| | | if (sensor.spk==SPK.SensorLight) { |
| | | //先过滤掉光照传感器 |
| | | return; |
| | | } |
| | | var levelColorList = sensorTemp.GetLevelColorList(sensor.spk); |
| | | var levelTextList = sensorTemp.GetLevelTextList(sensor.spk); |
| | | { |
| | |
| | | imagePath = "FunctionIcon/EnvirSensor/HchoBg.png"; |
| | | iconPath = "FunctionIcon/EnvirSensor/HchoIcon.png"; |
| | | break; |
| | | case SPK.SensorLight: |
| | | imagePath = "FunctionIcon/EnvirSensor/IlluminationBg.png"; |
| | | iconPath = "FunctionIcon/EnvirSensor/IlluminationIcon.png"; |
| | | break; |
| | | } |
| | | sensorView.BackgroundImagePath = imagePath; |
| | | |