From d70880a3d9ae6c9f99ec380ccd16f5524bb622e6 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期六, 05 四月 2025 09:06:31 +0800
Subject: [PATCH] 修改按钮状态

---
 DevApp/Gs.DevApp/UserControl/showZhongTai.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/DevApp/Gs.DevApp/UserControl/showZhongTai.cs b/DevApp/Gs.DevApp/UserControl/showZhongTai.cs
index ad49ad5..6200ca6 100644
--- a/DevApp/Gs.DevApp/UserControl/showZhongTai.cs
+++ b/DevApp/Gs.DevApp/UserControl/showZhongTai.cs
@@ -19,12 +19,12 @@
             InitializeComponent();
             btnSave.Click += (s, e) =>
             {
-                string str = comZt.SelectedText.Trim();
-                if (str.Length == 0)
+                if (comZt.SelectedIndex<= 0)
                 {
                     Gs.DevApp.ToolBox.MsgHelper.ShowError("璇烽�夋嫨鐘舵�侊紒");
                     return;
                 }
+                string str = comZt.Text.Trim();
                 UpdateParent?.Invoke(this, new UpdateParentEventArgs { StringSingle = str });
                 Close();
             };

--
Gitblit v1.9.3