| | |
| | | aC.trait_temp.curValue = temp; |
| | | //Control.Send(CommandType_A.write, aC); |
| | | System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); |
| | | d.Add("temp", temp.ToString()); |
| | | d.Add(FunctionAttributeKey.SetTemp, temp.ToString()); |
| | | Control.Ins.SendWriteCommand(aC, d); |
| | | }; |
| | | btnPlus.MouseUpEventHandler = (sender, e) => |
| | |
| | | btnTemp.Text = temp.ToString(); |
| | | aC.trait_temp.curValue = temp; |
| | | System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); |
| | | d.Add("set_temp", aC.trait_temp.curValue.ToString()); |
| | | d.Add(FunctionAttributeKey.SetTemp, aC.trait_temp.curValue.ToString()); |
| | | Control.Ins.SendWriteCommand(aC, d); |
| | | //aC.GetSendJObject |
| | | |
| | |
| | | btnTemp.Text = aC.trait_temp.curValue.ToString(); |
| | | //Control.Send(CommandType_A.write, aC); |
| | | System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); |
| | | d.Add("set_temp", aC.trait_temp.curValue.ToString()); |
| | | d.Add(FunctionAttributeKey.SetTemp, aC.trait_temp.curValue.ToString()); |
| | | Control.Ins.SendWriteCommand(aC, d); |
| | | }; |
| | | arcBar.OnProgressChangedEvent = (sender, e) => |
| | |
| | | |
| | | //Control.Send(CommandType_A.write, aC); |
| | | System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); |
| | | d.Add("on_off", aC.trait_on_off.curValue.ToString()); |
| | | d.Add(FunctionAttributeKey.OnOff, aC.trait_on_off.curValue.ToString()); |
| | | Control.Ins.SendWriteCommand(aC, d); |
| | | }; |
| | | } |
| | |
| | | btnMode.UnSelectedImagePath = aC.curModeImage; |
| | | //Control.Send(CommandType_A.write, aC); |
| | | System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); |
| | | d.Add("mode", curMode); |
| | | d.Add(FunctionAttributeKey.Mode, curMode); |
| | | Control.Ins.SendWriteCommand(aC, d); |
| | | dialog.Close(); |
| | | }; |
| | |
| | | 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("fan", curFan); |
| | | d.Add(FunctionAttributeKey.FanSpeed, curFan); |
| | | Control.Ins.SendWriteCommand(aC, d); |
| | | dialog.Close(); |
| | | }; |