private void ManageFormats() { // copy formats from sensor service _overlayEntries.ForEach(entry => entry.ValueUnitFormat = _sensorService.GetSensorOverlayEntry(entry.Identifier)?.ValueUnitFormat); _overlayEntries.ForEach(entry => entry.ValueAlignmentAndDigits = _sensorService.GetSensorOverlayEntry(entry.Identifier)?.ValueAlignmentAndDigits); SetOnlineMetricFormats(); SetOnlineMetricsIsNumericState(); SetRTSSMetricFormats(); SetRTSSMetricIsNumericState(); SetHardwareIsNumericState(); _overlayEntries.ForEach(entry => entry.FormatChanged = true); }
private void UpdateSensorData() { foreach (var entry in _overlayEntries.Where(x => (x.OverlayEntryType == EOverlayEntryType.GPU || x.OverlayEntryType == EOverlayEntryType.CPU || x.OverlayEntryType == EOverlayEntryType.RAM))) { var sensorEntry = _sensorService.GetSensorOverlayEntry(entry.Identifier); entry.Value = sensorEntry?.Value; } }