This commit is contained in:
xyy
2026-06-05 15:37:05 +08:00
parent d3fdb6a288
commit 8573f5c4e5

View File

@@ -143,6 +143,7 @@ public partial class D7896ViewModel : ObservableObject
Application.Current?.Dispatcher.Invoke(() => ChamberPressure = rawPressure); Application.Current?.Dispatcher.Invoke(() => ChamberPressure = rawPressure);
float rawTemp = await _plcService.ReadFloatAsync(_config.PlcRegisterAddresses.Temperature); float rawTemp = await _plcService.ReadFloatAsync(_config.PlcRegisterAddresses.Temperature);
rawTemp *= 1.0435f;
Application.Current?.Dispatcher.Invoke(() => CurrentTestTemperature = rawTemp); Application.Current?.Dispatcher.Invoke(() => CurrentTestTemperature = rawTemp);
} }
catch { } catch { }
@@ -942,7 +943,7 @@ public partial class D7896ViewModel : ObservableObject
var textRect = new XRect(cellX, currentRowY, colWidths[i], 20); var textRect = new XRect(cellX, currentRowY, colWidths[i], 20);
gfx.DrawString(headers[i], normalFont, XBrushes.Black, textRect, XStringFormats.Center); gfx.DrawString(headers[i], normalFont, XBrushes.Black, textRect, XStringFormats.Center);
} }
currentRowY += 20; currentRowY += 20;
// 填充数据行 (假设 Measurements 是列表) // 填充数据行 (假设 Measurements 是列表)
for (int i = 0; i < Measurements.Count; i++) for (int i = 0; i < Measurements.Count; i++)