From e81cbb4c978bec283c58629156c07106aaa46943 Mon Sep 17 00:00:00 2001
From: lx <ex_lixiang17@cosl.com.cn>
Date: 星期二, 18 十一月 2025 15:35:58 +0800
Subject: [PATCH] update 1.3.1

---
 ErrorAnalysis.UI/FrmMain.cs |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/ErrorAnalysis.UI/FrmMain.cs b/ErrorAnalysis.UI/FrmMain.cs
index ce31e28..9ceca01 100644
--- a/ErrorAnalysis.UI/FrmMain.cs
+++ b/ErrorAnalysis.UI/FrmMain.cs
@@ -9,6 +9,7 @@
 using OxyPlot.Series;
 using OxyPlot.WindowsForms;
 using System.ComponentModel.DataAnnotations;
+using System.Runtime.InteropServices;
 using System.Security.Cryptography;
 using System.Windows.Forms;
 using static System.Windows.Forms.VisualStyles.VisualStyleElement.Menu;
@@ -17,12 +18,14 @@
 {
     public partial class FrmMain : Form
     {
+        [DllImport("user32.dll")]
+        private static extern short GetAsyncKeyState(Keys vKey);
+
         private string? _connectionString;
         private List<COModelTable> _models;
         private Dictionary<string, string> _filters;
         private COModelTable _model;
         private ReportModel _reportModel;
-
         public FrmMain()
         {
             InitializeComponent();
@@ -184,7 +187,7 @@
                 AppendText(txtAnalysisResult, $"{errorRate}%", ColorTranslator.FromHtml("#8B0000"));
                 txtAnalysisResult.AppendText(" error rate. With the tool operating at ");
                 AppendText(txtAnalysisResult, $"{speed} {cmbSpeedUnit.Text}", ColorTranslator.FromHtml("#8B0000"));
-                txtAnalysisResult.AppendText(" the estimated total job duration is ");
+                txtAnalysisResult.AppendText(" the estimated one pass duration is ");
                 AppendText(txtAnalysisResult, $"{totalTime} hours.", ColorTranslator.FromHtml("#8B0000"));
 
                 _reportModel = CreateReportModel(totalTime.ToString(), result.ErrorRatios.Count.ToString(), Math.Round(UnitConvert.MS2FtHr(calcSpeed), 2).ToString(), errorRate.ToString());
@@ -215,10 +218,8 @@
 
                 _reportModel = CreateReportModel(totalTime.ToString(), result.ErrorRatios.Count.ToString(), speedFr.ToString(), errorRate.ToString());
             }
-            if (chkProcessing.Checked)
+            if ((Control.ModifierKeys & Keys.Control) == Keys.Control && (GetAsyncKeyState(Keys.D) & 0x8000) != 0)
                 new ProcessingData(processingData).Show();
-
-
         }
         private void btnReport_Click(object sender, EventArgs e)
         {

--
Gitblit v1.9.3