From 12e606635c42ea20f4b7c2bdda5204237a4b4c96 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期一, 02 三月 2026 16:14:49 +0800
Subject: [PATCH] 优化

---
 HMI.ParameterManage/SettingModal.xaml.cs |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/HMI.ParameterManage/SettingModal.xaml.cs b/HMI.ParameterManage/SettingModal.xaml.cs
index 98f2993..308485e 100644
--- a/HMI.ParameterManage/SettingModal.xaml.cs
+++ b/HMI.ParameterManage/SettingModal.xaml.cs
@@ -122,11 +122,12 @@
 
         private string GetTargetValue()
         {
-            if (CbType.Text == "Int" || Data.Type == "Double")
+            var type = CbType.Text;
+            if (type == "Int" || type == "Double")
             {
                 return NiNumberValue.Text;
             }
-            else if (CbType.Text == "Bool")
+            else if (type == "Bool")
             {
                 return CbBoolValue.Text;
             }

--
Gitblit v1.9.1