| | |
| | | view.AddChidren(btnAcstPower); |
| | | btnAcstPower.MouseUpEventHandler = (sender, e) => { |
| | | btnAcstPower.IsSelected = !btnAcstPower.IsSelected; |
| | | string onoff = btnAcstPower.IsSelected ? "on" : "off"; |
| | | Dictionary<string, string> d = new Dictionary<string, string>(); |
| | | d.Add(FunctionAttributeKey.OnOff, onoff); |
| | | foreach(var temp in FunctionList.List.GetAcstParentList()) |
| | | new System.Threading.Thread(() => |
| | | { |
| | | Control.Ins.SendWriteCommand(temp, d); |
| | | } |
| | | |
| | | string onoff = btnAcstPower.IsSelected ? "on" : "off"; |
| | | Dictionary<string, string> d = new Dictionary<string, string>(); |
| | | d.Add(FunctionAttributeKey.OnOff, onoff); |
| | | foreach (var temp in FunctionList.List.GetAcstParentList()) |
| | | { |
| | | Control.Ins.SendWriteCommand(temp, d); |
| | | } |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | }; |
| | | |
| | | |