From b271bcceb1c4e718377ca86b6213816abcf7482a Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期一, 11 一月 2021 13:57:18 +0800 Subject: [PATCH] 20210111-删除功能类别,统一使用spk去设备功能 --- HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs index 94ddcde..c652a45 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs @@ -212,6 +212,7 @@ btnMode.UnSelectedImagePath = aC.curModeImage; //Control.Send(CommandType_A.write, aC); System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); + btnMode.UnSelectedImagePath = btn1.UnSelectedImagePath; d.Add(FunctionAttributeKey.Mode, curMode); Control.Ins.SendWriteCommand(aC, d); dialog.Close(); @@ -233,7 +234,7 @@ /// </summary> void LoadEvent_ChangeFan(Dialog dialog, FrameLayout dialogView, Button btn1, Button btn2, string curFan) { - EventHandler<MouseEventArgs> eventHandler = (sender, e) => + EventHandler<MouseEventArgs> closeDialogEvent = (sender, e) => { dialog.Close(); }; @@ -242,15 +243,15 @@ btn1.IsSelected = btn2.IsSelected = true; aC.trait_fan.curValue = curFan; btnWindSpeed.UnSelectedImagePath = aC.curFanImage; - //Control.Send(CommandType_A.write, aC); System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); d.Add(FunctionAttributeKey.FanSpeed, curFan); Control.Ins.SendWriteCommand(aC, d); + btnWindSpeed.UnSelectedImagePath = btn1.UnSelectedImagePath; dialog.Close(); }; btn1.MouseUpEventHandler = eventHandler1; btn2.MouseUpEventHandler = eventHandler1; - dialogView.MouseUpEventHandler = eventHandler; + dialogView.MouseUpEventHandler = closeDialogEvent; } } } \ No newline at end of file -- Gitblit v1.8.0