From acc8caee31c4be90bd38d1af18136b0e84f6fe94 Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期五, 27 九月 2024 14:01:19 +0800
Subject: [PATCH] Merge branch 'feature/v2.7_迭代' into feature/V2.7_Google

---
 HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/TemperatureView.cs |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/TemperatureView.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/TemperatureView.cs
index f8b7a85..db3e0fe 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/TemperatureView.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/TemperatureView.cs
@@ -11,7 +11,7 @@
         /// <param name="frameLayout">寮圭獥鐖舵帶浠�</param>
         /// <param name="stateValue">涔嬪墠鐘舵�佸��</param>
         /// <param name="action">杩斿洖缁撴灉</param>
-        public void FLayoutView(FrameLayout frameLayout, string stateValue, Action<string> action,int min,int max,string unit)
+        public void FLayoutView(FrameLayout frameLayout, string stateValue, Action<string> action,int min,int max,string unit, string setTempAttr)
         {
             FrameLayout frame = new FrameLayout
             {
@@ -32,7 +32,10 @@
             {
                 //娣诲姞鏁版嵁
                 temperatureList.Add(i.ToString() + unit);
-                temperatureList.Add((i + 0.5).ToString() + unit);
+                if (setTempAttr == "0.5")
+                {
+                    temperatureList.Add((i + 0.5).ToString() + unit);
+                }
             }
             //鍔犺浇鏁版嵁鐣岄潰鐨勮缃柟娉�(鍒楄〃浜掍笉鑱斿姩)
             view.mUIPickerView.setNPicker(temperatureList, null, null);

--
Gitblit v1.8.0