From 7241d043c0d8f95b131903f984c05aa76b4a7ff9 Mon Sep 17 00:00:00 2001 From: "GukSang.Jin" Date: Mon, 22 Jun 2026 10:38:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B020260622?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ViewModels/MainWindowViewModel.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Footwear Test methodsfor wholeshoe Slipresistanceperformance/ViewModels/MainWindowViewModel.cs b/Footwear Test methodsfor wholeshoe Slipresistanceperformance/ViewModels/MainWindowViewModel.cs index 639fe88..8a9f2b7 100644 --- a/Footwear Test methodsfor wholeshoe Slipresistanceperformance/ViewModels/MainWindowViewModel.cs +++ b/Footwear Test methodsfor wholeshoe Slipresistanceperformance/ViewModels/MainWindowViewModel.cs @@ -410,6 +410,7 @@ namespace Footwear_Test_methodsfor_wholeshoe_Slipresistanceperformance.ViewModel return; } + var actualLoadForReport = FormatActualLoad(points); var report = new SlipReportExport( TestNumber, OperatorName, @@ -421,7 +422,7 @@ namespace Footwear_Test_methodsfor_wholeshoe_Slipresistanceperformance.ViewModel CurrentMode(), CurrentSurface(), TargetLoadText, - ActualLoadText, + actualLoadForReport, TestSpeedText, StandardReference, Samples.ToList(), @@ -1199,6 +1200,12 @@ namespace Footwear_Test_methodsfor_wholeshoe_Slipresistanceperformance.ViewModel ? Math.Max(1, targetLoad * MinimumAnalysisLoadRatio) : 1; + private static string FormatActualLoad(IReadOnlyList points) + { + var actualLoad = points.Average(point => point.VerticalLoadN); + return $"{actualLoad.ToString("F1", CultureInfo.InvariantCulture)} N"; + } + private static bool TryParseLoadValue(string value, out double load) { var numeric = new string(value