2 using System.Windows.Forms;
4 namespace CecConfigGui.actions
6 class RescanDevices : UpdateProcess
8 public RescanDevices(ref LibCecSharp lib)
13 public override void Process()
15 SendEvent(UpdateEventType.ProgressBar, 10);
16 SendEvent(UpdateEventType.StatusText, "Polling active devices");
17 Lib.RescanActiveDevices();
19 SendEvent(UpdateEventType.ProgressBar, 80);
20 SendEvent(UpdateEventType.StatusText, "Refreshing device list");
21 SendEvent(UpdateEventType.PollDevices);
23 SendEvent(UpdateEventType.ProgressBar, 100);
24 SendEvent(UpdateEventType.StatusText, "Ready.");
27 private LibCecSharp Lib;