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