| | |
| | | |
| | | switch (sensor.functionType) |
| | | { |
| | | case FunctionType.PM10: |
| | | case FunctionType.PM25: |
| | | tipValuesView.AddChidren(new Button() |
| | | { |
| | |
| | | //_levelTextList.Add(StringId.MildPollution); |
| | | //_levelTextList.Add(StringId.HeavyPollution); |
| | | //break; |
| | | //case FunctionType.Noise: |
| | | // break; |
| | | case FunctionType.WindPower: |
| | | break; |
| | | case FunctionType.CO2: |
| | | tipValuesView.AddChidren(new Button() |
| | | { |
| | |
| | | |
| | | bool initTitleButton = true; |
| | | |
| | | foreach (var tempSensor in DB_ResidenceData.residenceData.functionList.sensorsEnvironmentalScience) |
| | | foreach (var tempSensor in DB_ResidenceData.functionList.sensorsEnvironmentalScience) |
| | | { |
| | | if (tempSensor.sid == sensor.sid) |
| | | { |
| | |
| | | curMonth = DateTime.Now.Month; |
| | | } |
| | | int i = 0; |
| | | foreach (var sr in DB_ResidenceData.residenceData.functionList.sensorsEnvironmentalScience) |
| | | foreach (var sr in DB_ResidenceData.functionList.sensorsEnvironmentalScience) |
| | | { |
| | | if (sr.functionType != sensor.functionType) |
| | | { |