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