From c00da77d00a479fa5d022346a6d9075f90a5c087 Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期六, 14 九月 2024 10:05:34 +0800 Subject: [PATCH] 退出登录时间调整,新风,音乐 --- HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/TemperatureView.cs | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 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 5dad653..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) + public void FLayoutView(FrameLayout frameLayout, string stateValue, Action<string> action,int min,int max,string unit, string setTempAttr) { FrameLayout frame = new FrameLayout { @@ -28,18 +28,21 @@ }; //鍒濆鍖栧垪琛� var temperatureList = new List<string>(); - for (int i = 16; i < 32; i++) + for (int i = min; i < max; i++) { //娣诲姞鏁版嵁 - temperatureList.Add(i.ToString() + "鈩�"); - temperatureList.Add((i + 0.5).ToString() + "鈩�"); + temperatureList.Add(i.ToString() + unit); + if (setTempAttr == "0.5") + { + temperatureList.Add((i + 0.5).ToString() + unit); + } } //鍔犺浇鏁版嵁鐣岄潰鐨勮缃柟娉�(鍒楄〃浜掍笉鑱斿姩) view.mUIPickerView.setNPicker(temperatureList, null, null); //榛樿鍒濆閫変腑鐘舵�� view.mUIPickerView.setCurrentItems(9, 0, 0); //瀹氫箟涓�涓眬閮ㄥ彉閲忚褰曢�変腑鏃堕棿 - string temperature = "25鈩�"; + string temperature = "25"+ unit; for (int i = 0; i < temperatureList.Count; i++) { if (temperatureList[i] == stateValue) -- Gitblit v1.8.0