From 23bbed132eea46eef51c6d01c21b346238e29ee2 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 30 六月 2022 13:39:12 +0800
Subject: [PATCH] Merge branch 'wxr0114' into V1.5.9

---
 HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSensorPage.cs |  756 ++++++++++++++++++++++++++++-----------------------------
 1 files changed, 374 insertions(+), 382 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSensorPage.cs b/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSensorPage.cs
index 0505d7d..2d25afd 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSensorPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSensorPage.cs
@@ -149,383 +149,383 @@
             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
 
@@ -659,10 +659,6 @@
             int index = 1;
             foreach (var tempSensor in sensorList)
             {
-                if (index > 5)
-                {
-                    break;
-                }
                 if (tempSensor.sid == function.sid)
                 {
                     continue;
@@ -959,9 +955,5 @@
         /// <summary>
         /// </summary>
         public string fieldValue { get; set; }
-        /// <summary>
-        /// 鏃堕棿
-        /// </summary>
-        public string time { get; set; }
     }
 }
\ No newline at end of file

--
Gitblit v1.8.0