| | |
| | | /// </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); |
| | | { |
| | |
| | | case SPK.SensorHcho: |
| | | 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; |
| | |
| | | switch (sensor.spk) |
| | | { |
| | | case SPK.SensorPm25: |
| | | btnTitle.Text = "PM2.5(ug/m²)"; |
| | | btnTitle.Text = "PM2.5(ug/m³)";//² |
| | | break; |
| | | case SPK.SensorTemperature: |
| | | btnTitle.Text = Language.StringByID(StringId.Temp) + "(°C)"; |