cec-config-gui: make the progress bar invisible when done. disable the physical addre...
[deb_libcec.git] / src / cec-config-gui / actions / RescanDevices.cs
1 using CecSharp;
2 using System.Windows.Forms;
3
4 namespace CecConfigGui.actions
5 {
6 class RescanDevices : UpdateProcess
7 {
8 public override void Process()
9 {
10 SendEvent(UpdateEventType.ProgressBar, 10);
11 SendEvent(UpdateEventType.StatusText, "Polling active devices");
12 SendEvent(UpdateEventType.PollDevices);
13
14 SendEvent(UpdateEventType.ProgressBar, 100);
15 SendEvent(UpdateEventType.StatusText, "Ready.");
16 }
17 }
18 }