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