3 namespace CecConfigGui.actions
5 class RescanDevices : UpdateProcess
7 public RescanDevices(ref LibCecSharp lib)
12 public override void Process()
14 SendEvent(UpdateEventType.ProgressBar, 10);
15 SendEvent(UpdateEventType.StatusText, "Polling active devices");
16 Lib.RescanActiveDevices();
18 SendEvent(UpdateEventType.ProgressBar, 80);
19 SendEvent(UpdateEventType.StatusText, "Refreshing device list");
20 SendEvent(UpdateEventType.PollDevices);
22 SendEvent(UpdateEventType.ProgressBar, 100);
23 SendEvent(UpdateEventType.StatusText, "Ready.");
26 private LibCecSharp Lib;