/// <summary> /// /// </summary> void CommunicationMonitor_StatusChange(object sender, MonitorStatusChangeEventArgs e) { var c = sender as ICommunicationMonitor; if (StatusListDeviceIndexes.ContainsKey(c)) { var i = StatusListDeviceIndexes[c]; StatusList.UShortInputSig(i, 1).UShortValue = (ushort)e.Status; } }
void CommunicationMonitor_StatusChange(object sender, MonitorStatusChangeEventArgs e) { Debug.Console(2, this, "Communication monitor state: {0}", CommunicationMonitor.Status); if (e.Status == MonitorStatus.IsOk) { CrestronInvoke.BeginInvoke((o) => HandleAttributeSubscriptions()); } else if (e.Status != MonitorStatus.IsOk) { StopWatchDog(); } }