| | |
| | | |
| | | Sensor sensorTemp = new Sensor(); |
| | | |
| | | |
| | | Function function; |
| | | List<Function> showFunctions; |
| | | List<Function> sensorList; |
| | |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | break; |
| | | //case SPK.SensorPm25: |
| | | //_intervalValue.Add("0 ~ 35"); |
| | | //_intervalValue.Add("36 ~ 75"); |
| | | //_intervalValue.Add("76 ~ 115"); |
| | | //_intervalValue.Add("115 ~"); |
| | | //_levelTextList.Add(StringId.Great); |
| | | //_levelTextList.Add(StringId.Good); |
| | | //_levelTextList.Add(StringId.MildPollution); |
| | | //_levelTextList.Add(StringId.HeavyPollution); |
| | | //break; |
| | | case SPK.SensorCO2: |
| | | tipValuesView.AddChidren(new Button() |
| | | { |
| | |
| | | tipValuesView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(151), |
| | | Text = "40%", |
| | | Text = "70%", |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | |
| | | tipValuesView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(151), |
| | | Text = "70%", |
| | | Text = "40%", |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | |
| | | tipTextView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(101), |
| | | TextID = StringId.SensorReferenceHumidityTipLevel1, |
| | | TextID = StringId.SensorReferenceHumidityTipLevel3, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | |
| | | tipTextView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(101), |
| | | TextID = StringId.SensorReferenceHumidityTipLevel3, |
| | | TextID = StringId.SensorReferenceHumidityTipLevel1, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | |
| | | |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | ebl.xTitle = ""; |
| | | ebl.yTitle = ""; |
| | | if (curQueryType == "hour") |
| | | { |
| | | ebl.xTitle = Language.StringByID(StringId.HourUint); |
| | | } |
| | | else |
| | | { |
| | | ebl.xTitle = Language.StringByID(StringId.Date); |
| | | } |
| | | ebl.yTitle = Language.StringByID(StringId.Uint) + "(" + sensorTemp.Unit(function) + ")"; |
| | | |
| | | myEchartsView.ShowWithOption(ebl.InitOption()); |
| | | }); |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |