From 9211ec11c112e18cd99e77f889a01110a70031ce Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期一, 24 十一月 2025 17:47:15 +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