From bb3a3ddcad088ecaff2ba2100f053634fa43dfc4 Mon Sep 17 00:00:00 2001
From: lx <ex_lixiang17@cosl.com.cn>
Date: 星期二, 28 十月 2025 17:26:39 +0800
Subject: [PATCH] update
---
ErrorAnalysis.UI/FrmMain.cs | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/ErrorAnalysis.UI/FrmMain.cs b/ErrorAnalysis.UI/FrmMain.cs
index ce31e28..a80f1ac 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();
@@ -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