}
/// <summary>
- /// Looks up a localized string similar to The TV does not respond to polls. This is caused by one of the following: a) the TV does not support CEC, or b) CEC has been disabled in the TV's settings or c) the HDMI cable between the TV and adapter is faulty..
+ /// Looks up a localized string similar to The TV does not respond to CEC polls. This is caused by one of the following:
+ ///a) the TV does not support CEC;
+ ///b) CEC has been disabled in the TV's settings;
+ ///c) the HDMI cable between the TV and adapter is faulty.
+ ///
+ ///CEC will not work (properly) if the TV does not support CEC, or has CEC disabled in it's settings..
/// </summary>
internal static string alert_tv_poll_failed {
get {
<value>The device needs servicing. Please download and run the latest firmware upgrade from http://packages.pulse-eight.net/</value>
</data>
<data name="alert_tv_poll_failed" xml:space="preserve">
- <value>The TV does not respond to polls. This is caused by one of the following: a) the TV does not support CEC, or b) CEC has been disabled in the TV's settings or c) the HDMI cable between the TV and adapter is faulty.</value>
+ <value>The TV does not respond to CEC polls. This is caused by one of the following:
+a) the TV does not support CEC;
+b) CEC has been disabled in the TV's settings;
+c) the HDMI cable between the TV and adapter is faulty.
+
+CEC will not work (properly) if the TV does not support CEC, or has CEC disabled in it's settings.</value>
</data>
<data name="cec_alert" xml:space="preserve">
<value>Warning from libCEC</value>
switch (alert)
{
case CecAlert.ServiceDevice:
- MessageBox.Show(Resources.alert_service_device, Resources.cec_alert, MessageBoxButtons.OK);
+ MessageBox.Show(Resources.alert_service_device, Resources.cec_alert, MessageBoxButtons.OK, MessageBoxIcon.Warning);
break;
case CecAlert.ConnectionLost:
- MessageBox.Show(Resources.alert_connection_lost, Resources.cec_alert, MessageBoxButtons.OK);
+ MessageBox.Show(Resources.alert_connection_lost, Resources.cec_alert, MessageBoxButtons.OK, MessageBoxIcon.Warning);
break;
case CecAlert.PermissionError:
- MessageBox.Show(Resources.alert_permission_error, Resources.cec_alert, MessageBoxButtons.OK);
+ MessageBox.Show(Resources.alert_permission_error, Resources.cec_alert, MessageBoxButtons.OK, MessageBoxIcon.Warning);
break;
case CecAlert.PortBusy:
- MessageBox.Show(Resources.alert_port_busy, Resources.cec_alert, MessageBoxButtons.OK);
+ MessageBox.Show(Resources.alert_port_busy, Resources.cec_alert, MessageBoxButtons.OK, MessageBoxIcon.Warning);
break;
case CecAlert.PhysicalAddressError:
- MessageBox.Show(Resources.alert_physical_address_error, Resources.cec_alert, MessageBoxButtons.OK);
+ MessageBox.Show(Resources.alert_physical_address_error, Resources.cec_alert, MessageBoxButtons.OK, MessageBoxIcon.Warning);
break;
case CecAlert.TVPollFailed:
- MessageBox.Show(Resources.alert_tv_poll_failed, Resources.cec_alert, MessageBoxButtons.OK);
+ MessageBox.Show(Resources.alert_tv_poll_failed, Resources.cec_alert, MessageBoxButtons.OK, MessageBoxIcon.Warning);
break;
}
return 1;
SendEvent(UpdateEventType.StatusText, Resources.action_polling_active_devices);
SendEvent(UpdateEventType.PollDevices);
+ if (!_lib.IsActiveDevice(CecLogicalAddress.Tv))
+ {
+ MessageBox.Show(Resources.alert_tv_poll_failed, Resources.cec_alert, MessageBoxButtons.OK, MessageBoxIcon.Warning);
+ }
+
SendEvent(UpdateEventType.ProgressBar, 100);
SendEvent(UpdateEventType.StatusText, Resources.ready);
}