2 using System.Collections.Generic;
6 namespace CecConfigGui.actions
8 class SendStandby : UpdateProcess
10 public SendStandby(ref LibCecSharp lib, CecLogicalAddress address)
16 public override void Process()
18 SendEvent(UpdateEventType.StatusText, "Sending the 'standby' command to " + Lib.ToString(Address) + "...");
19 SendEvent(UpdateEventType.ProgressBar, 50);
21 bool bResult = Lib.StandbyDevices(Address);
22 SendEvent(UpdateEventType.StatusText, bResult ? "Command sent successfully." : "The 'standby' command was not acked.");
23 SendEvent(UpdateEventType.ProgressBar, 100);
26 private LibCecSharp Lib;
27 private CecLogicalAddress Address;