| | |
| | | using System; |
| | | using HDL_ON.DriverLayer; |
| | | using HDL_ON.Entity; |
| | | using HDL_ON.UI.CSS; |
| | | using Shared; |
| | |
| | | //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()); |
| | | Control.SendWriteCommand(aC, d); |
| | | Control.ins.SendWriteCommand(aC, d); |
| | | }; |
| | | btnPlus.MouseUpEventHandler = (sender, e) => |
| | | { |
| | |
| | | aC.trait_temp.value = temp; |
| | | System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); |
| | | d.Add("temp", aC.trait_temp.value.ToString()); |
| | | Control.SendWriteCommand(aC, d); |
| | | Control.ins.SendWriteCommand(aC, d); |
| | | //aC.GetSendJObject |
| | | |
| | | }; |
| | |
| | | //Control.Send(CommandType_A.write, aC); |
| | | System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); |
| | | d.Add("temp", aC.trait_temp.value.ToString()); |
| | | Control.SendWriteCommand(aC, d); |
| | | 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.value.ToString()); |
| | | Control.SendWriteCommand(aC, d); |
| | | Control.ins.SendWriteCommand(aC, d); |
| | | }; |
| | | } |
| | | |
| | |
| | | //Control.Send(CommandType_A.write, aC); |
| | | System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); |
| | | d.Add("mode", aC.curModeIndex.ToString()); |
| | | Control.SendWriteCommand(aC, d); |
| | | Control.ins.SendWriteCommand(aC, d); |
| | | dialog.Close(); |
| | | }; |
| | | btn1.MouseUpEventHandler = eventHandler1; |
| | |
| | | //Control.Send(CommandType_A.write, aC); |
| | | System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); |
| | | d.Add("fan", aC.curFanIndex.ToString()); |
| | | Control.SendWriteCommand(aC, d); |
| | | Control.ins.SendWriteCommand(aC, d); |
| | | dialog.Close(); |
| | | }; |
| | | btn1.MouseUpEventHandler = eventHandler1; |