From 46f64905a3c309a50c0f245b3350cdeb8dd699c6 Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期三, 22 一月 2025 17:29:02 +0800
Subject: [PATCH] 计算优化

---
 WinFrmUI/Yw.WinFrmUI.Hydro.Core/05-property/HydroVisualPropertyCtrl.cs |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/05-property/HydroVisualPropertyCtrl.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/05-property/HydroVisualPropertyCtrl.cs
index 41d8e6e..da2f1f2 100644
--- a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/05-property/HydroVisualPropertyCtrl.cs
+++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/05-property/HydroVisualPropertyCtrl.cs
@@ -226,8 +226,15 @@
             {
                 e.CellText = ((DateTime)e.Properties.Value).ToString("yyyy-MM-dd HH:mm:ss");
             }
+            else if (fullTypeName == typeof(string[]).FullName)
+            {
+                var stringValue = (string[])e.Properties.Value;
+                e.CellText = stringValue?.Length.ToString();
+            }
             else
             {
+
+
                 var descriptor = this.propertyGridControl1.GetPropertyDescriptor(e.Row);
                 if (descriptor != null)
                 {

--
Gitblit v1.9.3