| | |
| | | // }); |
| | | //}) |
| | | //{ IsBackground = true }.Start(); |
| | | function.trait_on_off.curValue = "off"; |
| | | function.trait_on_off.state = "off"; |
| | | function.SetAttrState(FunctionAttributeKey.Percent, 0); |
| | | System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); |
| | | d.Add(FunctionAttributeKey.OnOff, function.trait_on_off.curValue.ToString()); |
| | | d.Add(FunctionAttributeKey.OnOff, function.trait_on_off.state.ToString()); |
| | | DriverLayer.Control.Ins.SendWriteCommand(function, d); |
| | | CurtainAnimation(0); |
| | | }; |
| | |
| | | }); |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | function.trait_on_off.curValue = "stop"; |
| | | function.trait_on_off.state = "stop"; |
| | | System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); |
| | | d.Add(FunctionAttributeKey.OnOff, function.trait_on_off.curValue.ToString()); |
| | | d.Add(FunctionAttributeKey.OnOff, function.trait_on_off.state.ToString()); |
| | | DriverLayer.Control.Ins.SendWriteCommand(function, d); |
| | | onCurtainAnimation = false; |
| | | }; |
| | |
| | | // }); |
| | | //}) |
| | | //{ IsBackground = true }.Start(); |
| | | function.trait_on_off.curValue = "on"; |
| | | function.trait_on_off.state = "on"; |
| | | function.SetAttrState(FunctionAttributeKey.Percent, 100); |
| | | System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); |
| | | d.Add(FunctionAttributeKey.OnOff, function.trait_on_off.curValue.ToString()); |
| | | d.Add(FunctionAttributeKey.OnOff, function.trait_on_off.state.ToString()); |
| | | DriverLayer.Control.Ins.SendWriteCommand(function, d); |
| | | CurtainAnimation(100); |
| | | }; |