From 48d3792464052262dfe6bfb57f1a369332fac863 Mon Sep 17 00:00:00 2001 From: zqm Date: Mon, 10 Nov 2025 11:11:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A2=9C=E8=89=B2=E5=88=97?= =?UTF-8?q?=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91=EF=BC=8C=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E5=8F=8C=E5=87=BB=E6=89=8D=E4=BF=AE=E6=94=B9=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CS/Framework4.0/Toprie/Toprie/Setting.cs | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/Windows/CS/Framework4.0/Toprie/Toprie/Setting.cs b/Windows/CS/Framework4.0/Toprie/Toprie/Setting.cs index b13f4fd..e691b6c 100644 --- a/Windows/CS/Framework4.0/Toprie/Toprie/Setting.cs +++ b/Windows/CS/Framework4.0/Toprie/Toprie/Setting.cs @@ -317,11 +317,22 @@ namespace JoyD.Windows.CS } private void DataGridViewTempDiff_CellClick(object sender, DataGridViewCellEventArgs e) + { + // 移除颜色列点击处理逻辑,颜色列修改改为双击触发 + // 温差值列点击不再直接进入编辑模式,改为双击进入 + } + + private void DataGridViewTempDiff_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex >= 0 && e.RowIndex < tempDiffData.Count) { - // 只处理颜色列点击 - if (e.ColumnIndex == dataGridViewTempDiff.Columns["colorColumn"].Index) + // 处理温差值列双击 - 双击时启动编辑模式 + if (e.ColumnIndex == dataGridViewTempDiff.Columns["tempDiffValue"].Index) + { + dataGridViewTempDiff.BeginEdit(true); + } + // 处理颜色列双击 - 双击时打开颜色选择对话框 + else if (e.ColumnIndex == dataGridViewTempDiff.Columns["colorColumn"].Index) { using (ColorDialog colorDialog = new ColorDialog()) { @@ -337,19 +348,6 @@ namespace JoyD.Windows.CS } } } - // 温差值列点击不再直接进入编辑模式,改为双击进入 - } - } - - private void DataGridViewTempDiff_CellDoubleClick(object sender, DataGridViewCellEventArgs e) - { - if (e.RowIndex >= 0 && e.RowIndex < tempDiffData.Count) - { - // 处理温差值列双击 - 双击时启动编辑模式 - if (e.ColumnIndex == dataGridViewTempDiff.Columns["tempDiffValue"].Index) - { - dataGridViewTempDiff.BeginEdit(true); - } } }