From 0f61f7a60bf532e91d08aa2e0716e986bf571413 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期三, 02 九月 2020 17:03:54 +0800 Subject: [PATCH] 2020-09-01-2 --- ZigbeeApp/Shared/Phone/Device/Logic/Nightlight.cs | 16 +++++----------- 1 files changed, 5 insertions(+), 11 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/Nightlight.cs b/ZigbeeApp/Shared/Phone/Device/Logic/Nightlight.cs index 899891a..8e854f7 100644 --- a/ZigbeeApp/Shared/Phone/Device/Logic/Nightlight.cs +++ b/ZigbeeApp/Shared/Phone/Device/Logic/Nightlight.cs @@ -221,13 +221,12 @@ string status = ""; Dictionary<string, string> dictionaryLight = new Dictionary<string, string>(); + dictionaryLight.Clear(); switch (if_str) { case "澶滅伅寮�鍏�": { - - Send.dictionary(dictionaryLight, "TaskType", "1"); - Send.dictionary(dictionaryLight, "Data2", "0"); + mFunView openView = new mFunView(); openView.frameLayout.Y = Application.GetRealHeight(140 + 20); openView.titleBtn.TextID = MyInternationalizationString.open; @@ -286,8 +285,6 @@ break; case "浜害": { - Send.dictionary(dictionaryLight, "TaskType", "3"); - Send.dictionary(dictionaryLight, "Data2", "0"); var horizontalSeekBarVol = new DiyImageSeekBar { Y = Application.GetRealHeight(140),//杩涘害鏉$埗鎺т欢Y鍧愭爣 @@ -333,8 +330,6 @@ break; case "鑹叉俯": { - Send.dictionary(dictionaryLight, "TaskType", "8"); - Send.dictionary(dictionaryLight, "Data2", "0"); Button seekIconBtn = new Button { Y = Application.GetRealHeight(140 + 160), @@ -392,9 +387,6 @@ break; case "铚傞福鍣�": { - Send.dictionary(dictionaryLight, "TaskType", "7"); - Send.dictionary(dictionaryLight, "Data2", "0"); - mFunView openView = new mFunView(); openView.frameLayout.Y = Application.GetRealHeight(140 + 20); @@ -457,8 +449,10 @@ } completeView.Btncomplete.MouseUpEventHandler += (sender, e) => { - if (selectedDeviceStatus != "") + if (dictionaryLight.Count!=0) { + Send.dictionary(dictionaryLight, "TaskType", selectedDeviceStatus); + Send.dictionary(dictionaryLight, "Data2", "0"); flMain.RemoveFromParent(); DicValue(selectedDeviceStatus, dictionaryLight); button.Text = status; -- Gitblit v1.8.0