| | |
| | | historyDataView.AddChidren(myEchartsView); |
| | | |
| | | #region 底部等级提示 |
| | | HorizontalScrolViewLayout tipValuesView = new HorizontalScrolViewLayout() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = Application.GetRealWidth(348), |
| | | Width = Application.GetRealWidth(303), |
| | | Height = Application.GetRealHeight(30), |
| | | }; |
| | | diagramView.AddChidren(tipValuesView); |
| | | //HorizontalScrolViewLayout tipValuesView = new HorizontalScrolViewLayout() |
| | | //{ |
| | | // Gravity = Gravity.CenterHorizontal, |
| | | // Y = Application.GetRealWidth(348), |
| | | // Width = Application.GetRealWidth(303), |
| | | // Height = Application.GetRealHeight(30), |
| | | //}; |
| | | //diagramView.AddChidren(tipValuesView); |
| | | |
| | | Button btnColorTip = new Button() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = tipValuesView.Bottom, |
| | | Width = Application.GetRealWidth(303), |
| | | Height = Application.GetRealHeight(7), |
| | | UnSelectedImagePath = "FunctionIcon/EnvironmentalScience/SensorColorTipBg.png", |
| | | }; |
| | | diagramView.AddChidren(btnColorTip); |
| | | //Button btnColorTip = new Button() |
| | | //{ |
| | | // Gravity = Gravity.CenterHorizontal, |
| | | // Y = tipValuesView.Bottom, |
| | | // Width = Application.GetRealWidth(303), |
| | | // Height = Application.GetRealHeight(7), |
| | | // UnSelectedImagePath = "FunctionIcon/EnvironmentalScience/SensorColorTipBg.png", |
| | | //}; |
| | | //diagramView.AddChidren(btnColorTip); |
| | | |
| | | HorizontalScrolViewLayout tipTextView = new HorizontalScrolViewLayout() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = btnColorTip.Bottom, |
| | | Width = Application.GetRealWidth(303), |
| | | Height = Application.GetRealHeight(30), |
| | | }; |
| | | diagramView.AddChidren(tipTextView); |
| | | //HorizontalScrolViewLayout tipTextView = new HorizontalScrolViewLayout() |
| | | //{ |
| | | // Gravity = Gravity.CenterHorizontal, |
| | | // Y = btnColorTip.Bottom, |
| | | // Width = Application.GetRealWidth(303), |
| | | // Height = Application.GetRealHeight(30), |
| | | //}; |
| | | //diagramView.AddChidren(tipTextView); |
| | | |
| | | switch (function.spk) |
| | | { |
| | | case SPK.SensorPm25: |
| | | tipValuesView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(101), |
| | | Text = "35", |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipValuesView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(101), |
| | | Text = "75", |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipValuesView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(101), |
| | | Text = "115", |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipTextView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(75), |
| | | TextID = StringId.Great, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipTextView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(75), |
| | | TextID = StringId.Good, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipTextView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(75), |
| | | TextID = StringId.MildPollution, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipTextView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(75), |
| | | TextID = StringId.HeavyPollution, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | 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() |
| | | { |
| | | Width = Application.GetRealWidth(101), |
| | | Text = "1000", |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipValuesView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(101), |
| | | Text = "2000", |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipValuesView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(101), |
| | | Text = "5000", |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipTextView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(75), |
| | | TextID = StringId.SensorReferenceTipCO2Level1, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipTextView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(75), |
| | | TextID = StringId.SensorReferenceTipCO2Level2, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipTextView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(75), |
| | | TextID = StringId.SensorReferenceTipCO2Level3, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipTextView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(75), |
| | | TextID = StringId.SensorReferenceTipCO2Level4, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | break; |
| | | case SPK.SensorTemperature: |
| | | tipValuesView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(50), |
| | | Text = "18°C", |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipValuesView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(50), |
| | | Text = "20°C", |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipValuesView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(50), |
| | | Text = "25°C", |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipValuesView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(50), |
| | | Text = "27°C", |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipValuesView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(50), |
| | | Text = "30°C", |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipValuesView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(50), |
| | | Text = "33°C", |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | //_intervalValue.Add("~ 18°C"); |
| | | //_intervalValue.Add("18 ~ 20°C"); |
| | | //_intervalValue.Add("20 ~ 25°C"); |
| | | //_intervalValue.Add("25 ~ 27°C"); |
| | | //_intervalValue.Add("27 ~ 30°C"); |
| | | //_intervalValue.Add("30 ~ 33°C"); |
| | | //_intervalValue.Add("33°C ~"); |
| | | tipTextView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(43), |
| | | TextID = StringId.ExtremelyCold, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipTextView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(43), |
| | | TextID = StringId.SlightlyCold, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipTextView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(43), |
| | | TextID = StringId.Cold, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipTextView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(43), |
| | | TextID = StringId.Comfortable, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipTextView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(43), |
| | | TextID = StringId.TepidFever, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipTextView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(43), |
| | | TextID = StringId.Heat_SensorTip, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipTextView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(43), |
| | | TextID = StringId.ExtremeHeat, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | //_levelTextList.Add(StringId.ExtremelyCold); |
| | | //_levelTextList.Add(StringId.); |
| | | //_levelTextList.Add(StringId.); |
| | | //_levelTextList.Add(StringId.); |
| | | //_levelTextList.Add(StringId.); |
| | | //_levelTextList.Add(StringId.); |
| | | //_levelTextList.Add(StringId.ExtremeHeat); |
| | | break; |
| | | case SPK.SensorTVOC: |
| | | tipValuesView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(101), |
| | | Text = "0.6", |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipValuesView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(101), |
| | | Text = "2", |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipValuesView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(101), |
| | | Text = "5", |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipTextView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(75), |
| | | TextID = StringId.SensorReferenceTVOCTipLevel1, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipTextView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(75), |
| | | TextID = StringId.SensorReferenceTVOCTipLevel2, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipTextView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(75), |
| | | TextID = StringId.SensorReferenceTVOCTipLevel3, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipTextView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(75), |
| | | TextID = StringId.SensorReferenceTVOCTipLevel4, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | break; |
| | | case SPK.SensorHumidity: |
| | | tipValuesView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(151), |
| | | Text = "40%", |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipValuesView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(151), |
| | | Text = "70%", |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipTextView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(101), |
| | | TextID = StringId.SensorReferenceHumidityTipLevel1, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipTextView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(101), |
| | | TextID = StringId.SensorReferenceHumidityTipLevel2, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | tipTextView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(101), |
| | | TextID = StringId.SensorReferenceHumidityTipLevel3, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | }); |
| | | break; |
| | | } |
| | | //switch (function.spk) |
| | | //{ |
| | | // case SPK.SensorPm25: |
| | | // tipValuesView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(101), |
| | | // Text = "35", |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipValuesView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(101), |
| | | // Text = "75", |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipValuesView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(101), |
| | | // Text = "115", |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipTextView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(75), |
| | | // TextID = StringId.Great, |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipTextView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(75), |
| | | // TextID = StringId.Good, |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipTextView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(75), |
| | | // TextID = StringId.MildPollution, |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipTextView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(75), |
| | | // TextID = StringId.HeavyPollution, |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // 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() |
| | | // { |
| | | // Width = Application.GetRealWidth(101), |
| | | // Text = "1000", |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipValuesView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(101), |
| | | // Text = "2000", |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipValuesView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(101), |
| | | // Text = "5000", |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipTextView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(75), |
| | | // TextID = StringId.SensorReferenceTipCO2Level1, |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipTextView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(75), |
| | | // TextID = StringId.SensorReferenceTipCO2Level2, |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipTextView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(75), |
| | | // TextID = StringId.SensorReferenceTipCO2Level3, |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipTextView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(75), |
| | | // TextID = StringId.SensorReferenceTipCO2Level4, |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // break; |
| | | // case SPK.SensorTemperature: |
| | | // tipValuesView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(50), |
| | | // Text = "18°C", |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipValuesView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(50), |
| | | // Text = "20°C", |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipValuesView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(50), |
| | | // Text = "25°C", |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipValuesView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(50), |
| | | // Text = "27°C", |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipValuesView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(50), |
| | | // Text = "30°C", |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipValuesView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(50), |
| | | // Text = "33°C", |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // //_intervalValue.Add("~ 18°C"); |
| | | // //_intervalValue.Add("18 ~ 20°C"); |
| | | // //_intervalValue.Add("20 ~ 25°C"); |
| | | // //_intervalValue.Add("25 ~ 27°C"); |
| | | // //_intervalValue.Add("27 ~ 30°C"); |
| | | // //_intervalValue.Add("30 ~ 33°C"); |
| | | // //_intervalValue.Add("33°C ~"); |
| | | // tipTextView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(43), |
| | | // TextID = StringId.ExtremelyCold, |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipTextView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(43), |
| | | // TextID = StringId.SlightlyCold, |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipTextView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(43), |
| | | // TextID = StringId.Cold, |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipTextView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(43), |
| | | // TextID = StringId.Comfortable, |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipTextView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(43), |
| | | // TextID = StringId.TepidFever, |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipTextView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(43), |
| | | // TextID = StringId.Heat_SensorTip, |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipTextView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(43), |
| | | // TextID = StringId.ExtremeHeat, |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // //_levelTextList.Add(StringId.ExtremelyCold); |
| | | // //_levelTextList.Add(StringId.); |
| | | // //_levelTextList.Add(StringId.); |
| | | // //_levelTextList.Add(StringId.); |
| | | // //_levelTextList.Add(StringId.); |
| | | // //_levelTextList.Add(StringId.); |
| | | // //_levelTextList.Add(StringId.ExtremeHeat); |
| | | // break; |
| | | // case SPK.SensorTVOC: |
| | | // tipValuesView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(101), |
| | | // Text = "0.6", |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipValuesView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(101), |
| | | // Text = "2", |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipValuesView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(101), |
| | | // Text = "5", |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipTextView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(75), |
| | | // TextID = StringId.SensorReferenceTVOCTipLevel1, |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipTextView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(75), |
| | | // TextID = StringId.SensorReferenceTVOCTipLevel2, |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipTextView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(75), |
| | | // TextID = StringId.SensorReferenceTVOCTipLevel3, |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipTextView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(75), |
| | | // TextID = StringId.SensorReferenceTVOCTipLevel4, |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // break; |
| | | // case SPK.SensorHumidity: |
| | | // tipValuesView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(151), |
| | | // Text = "40%", |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipValuesView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(151), |
| | | // Text = "70%", |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipTextView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(101), |
| | | // TextID = StringId.SensorReferenceHumidityTipLevel1, |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipTextView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(101), |
| | | // TextID = StringId.SensorReferenceHumidityTipLevel2, |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // tipTextView.AddChidren(new Button() |
| | | // { |
| | | // Width = Application.GetRealWidth(101), |
| | | // TextID = StringId.SensorReferenceHumidityTipLevel3, |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | // }); |
| | | // break; |
| | | //} |
| | | |
| | | #endregion |
| | | |
| | |
| | | int index = 1; |
| | | foreach (var tempSensor in sensorList) |
| | | { |
| | | if (index > 5) |
| | | { |
| | | break; |
| | | } |
| | | if (tempSensor.sid == function.sid) |
| | | { |
| | | continue; |