| | |
| | | d.Add(FunctionAttributeKey.FadeTime, function.GetAttrState(FunctionAttributeKey.FadeTime)); |
| | | Control.Ins.SendWriteCommand(function, d); |
| | | } |
| | | else if (function.spk == SPK.PanelSocket) |
| | | { |
| | | if (function.attributes.Find((obj) => obj.key == "on_off_usb") != null) |
| | | { |
| | | d.Add("on_off_usb", function.trait_on_off.curValue.ToString()); |
| | | } |
| | | Control.Ins.SendWriteCommand(function, d); |
| | | } |
| | | //else if (function.spk == SPK.PanelSocket)//去掉,统一处理总控 |
| | | //{ |
| | | // if (function.attributes.Find((obj) => obj.key == "on_off_usb") != null) |
| | | // { |
| | | // d.Add("on_off_usb", function.trait_on_off.curValue.ToString()); |
| | | // } |
| | | // Control.Ins.SendWriteCommand(function, d); |
| | | //} |
| | | else |
| | | { |
| | | d.Add("on_off", function.trait_on_off.curValue.ToString()); |