From 0f99680aff09e91f521b5909aab42811c1c3e6f1 Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期三, 09 四月 2025 15:28:16 +0800
Subject: [PATCH] 优化Revit=>HydroModelInfo转换方法

---
 WinFrmUI/Yw.WinFrmUI.Core/00-core/GridViewExtensions.cs |   28 ++++------------------------
 1 files changed, 4 insertions(+), 24 deletions(-)

diff --git a/WinFrmUI/Yw.WinFrmUI.Core/00-core/GridViewExtensions.cs b/WinFrmUI/Yw.WinFrmUI.Core/00-core/GridViewExtensions.cs
index f0fdf38..3fe0647 100644
--- a/WinFrmUI/Yw.WinFrmUI.Core/00-core/GridViewExtensions.cs
+++ b/WinFrmUI/Yw.WinFrmUI.Core/00-core/GridViewExtensions.cs
@@ -1,8 +1,4 @@
-锘縰sing DevExpress.CodeParser;
-using DevExpress.Utils.Behaviors;
-using DevExpress.Utils.DragDrop;
-
-namespace Yw.WinFrmUI
+锘縩amespace Yw.WinFrmUI
 {
     /// <summary>
     /// GridView鐨勬嫇灞曠被
@@ -46,8 +42,6 @@
             grid.OptionsBehavior.Editable = false;
             grid.OptionsBehavior.ReadOnly = true;
 
-
-             
             grid.OptionsView.EnableAppearanceOddRow = true;   // 浣胯兘 // 鍜屽拰涓婇潰缁戝畾 鍚屾椂浣跨敤鏈夋晥
             grid.Appearance.EvenRow.BackColor = Color.FromArgb(244, 248, 251);  // 璁剧疆鍋舵暟琛岄鑹�
             grid.OptionsView.EnableAppearanceEvenRow = true;
@@ -87,7 +81,6 @@
             grid.OptionsView.EnableAppearanceEvenRow = true;
             grid.Appearance.OddRow.BackColor = Color.White; // 璁剧疆鍋舵暟琛岄鑹�
 
-
             grid.RowHeight = height;
             grid.ColumnPanelRowHeight = height;
             grid.GroupRowHeight = height;
@@ -123,7 +116,6 @@
             grid.Appearance.OddRow.BackColor = Color.White;
             grid.Appearance.EvenRow.BackColor = Color.FromArgb(244, 248, 251);
 
-
             grid.RowHeight = height;
             grid.ColumnPanelRowHeight = height;
             grid.GroupRowHeight = height;
@@ -158,7 +150,6 @@
             grid.Appearance.EvenRow.BackColor = Color.FromArgb(244, 248, 251);  // 璁剧疆鍋舵暟琛岄鑹�
             grid.OptionsView.EnableAppearanceEvenRow = true;
             grid.Appearance.OddRow.BackColor = Color.White; // 璁剧疆鍋舵暟琛岄鑹�
-
 
             grid.RowHeight = height;
             grid.ColumnPanelRowHeight = height;
@@ -223,8 +214,6 @@
             grid.ColumnPanelRowHeight = height;
             grid.GroupRowHeight = height;
             grid.BestFitColumns();
-
-
         }
 
         /// <summary>
@@ -334,7 +323,7 @@
             return row;
         }
 
-        #endregion
+        #endregion 榛樿
 
         /// <summary>
         /// 缁戝畾鎸夊垪鍒嗙粍瑙嗗浘璁剧疆 Nsx_20210729
@@ -376,7 +365,6 @@
             grid.BestFitColumns();
         }
 
-
         /// <summary>
         /// 鏅�氱紪杈戣鍥捐缃�
         /// </summary>
@@ -406,17 +394,15 @@
             grid.Appearance.OddRow.BackColor = Color.White;
             grid.Appearance.EvenRow.BackColor = Color.FromArgb(244, 248, 251);
 
-
             grid.RowHeight = height;
             grid.ColumnPanelRowHeight = height;
             grid.GroupRowHeight = height;
             grid.BestFitColumns();
         }
 
-
         /// <summary>
         /// 璁剧疆鎷栨嫿鐘舵�佷笅鐨勬櫘閫氳鍥�
-        /// </summary> 
+        /// </summary>
         public static void SetDragNormalView<t>(this GridView rhs, int height = 30) where t : class
         {
             rhs.SetNormalView(height);
@@ -435,7 +421,6 @@
                     }
                 }
             };
-
 
             rhs.MouseMove += (sender, e) =>
             {
@@ -461,10 +446,5 @@
                 }
             };
         }
-
-
-
-
-
     }
-}
+}
\ No newline at end of file

--
Gitblit v1.9.3