+ while (!Lib.Open(adapters[0].ComPort, 10000))
+ {
+ DialogResult result = MessageBox.Show("Could not connect to any CEC adapter. Please check your configuration. Do you want to try again?", "Pulse-Eight USB-CEC Adapter", MessageBoxButtons.YesNo);
+ if (result == DialogResult.No)
+ {
+ SendEvent(UpdateEventType.ExitApplication);
+ return;
+ }
+ }
+
+ SendEvent(UpdateEventType.ProgressBar, 20);
+ SendEvent(UpdateEventType.StatusText, "Sending power on commands...");
+ Lib.PowerOnDevices(CecLogicalAddress.Broadcast);
+