| | |
| | | btnStop.IsSelected = false; |
| | | btnOpen.IsSelected = false; |
| | | curtain.trait_on_off.value = "off"; |
| | | //Control.Send(CommandType_A.write, curtain); |
| | | curtain.percent = 0; |
| | | System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); |
| | | d.Add("on_off", curtain.trait_on_off.value.ToString()); |
| | | Control.SendWriteCommand(curtain, d); |
| | |
| | | btnClose.IsSelected = false; |
| | | btnStop.IsSelected = false; |
| | | curtain.trait_on_off.value = "stop"; |
| | | //Control.Send(CommandType_A.write, curtain); |
| | | //curtain.percent = 0; |
| | | System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); |
| | | d.Add("on_off", curtain.trait_on_off.value.ToString()); |
| | | Control.SendWriteCommand(curtain, d); |
| | |
| | | btnClose.IsSelected = false; |
| | | btnStop.IsSelected = false; |
| | | curtain.trait_on_off.value = "on"; |
| | | //Control.Send(CommandType_A.write, curtain); |
| | | curtain.percent = 100; |
| | | System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); |
| | | d.Add("on_off", curtain.trait_on_off.value.ToString()); |
| | | Control.SendWriteCommand(curtain, d); |