3 namespace CecConfigGui.actions
5 class SendStandby : UpdateProcess
7 public SendStandby(ref LibCecSharp lib, CecLogicalAddress address)
13 public override void Process()
15 SendEvent(UpdateEventType.StatusText, "Sending the 'standby' command to " + Lib.ToString(Address) + "...");
16 SendEvent(UpdateEventType.ProgressBar, 50);
18 bool bResult = Lib.StandbyDevices(Address);
19 SendEvent(UpdateEventType.StatusText, bResult ? "Command sent successfully." : "The 'standby' command was not acked.");
20 SendEvent(UpdateEventType.ProgressBar, 100);
23 private LibCecSharp Lib;
24 private CecLogicalAddress Address;