protected void ProcessHardwareStatusUpdate(string message, int value) { lock (_statusLock) { StatusElement element = _statusElements.Find(message); if (element != null) { element.Value = value; if (element.Type.Contains(TagTypes.Status)) { SendStatusUpdate(); } if (element.Type.Contains(TagTypes.Information)) { try { DataAccessReference.UpdateWidgets(message, value); } catch { } } if (element.Type.Contains(TagTypes.Control)) { try { DataAccessReference.UpdateWidgets(message, value); } catch { } } } } }
protected void SendDisplayUpdate() { SendStatusUpdate(); lock (_statusLock) foreach (StatusElement element in _statusElements) { if (element.Type.Contains(TagTypes.Information)) { try { DataAccessReference.UpdateWidgets(element.Name, element.Value); } catch { } } if (element.Type.Contains(TagTypes.Control)) { try { DataAccessReference.UpdateWidgets(element.Name, element.Value); } catch { } } } }