From a6c50c87d1ba3f5c8785dcc9e8ea640b5a43209f Mon Sep 17 00:00:00 2001
From: duheng <2784771470@qq.com>
Date: 星期四, 26 九月 2024 15:07:09 +0800
Subject: [PATCH] 修改报错

---
 WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/06-simulation/01-matching/03-valve/XhsProjectSimulationValveMatchingListCtrl.cs |   15 +++------------
 1 files changed, 3 insertions(+), 12 deletions(-)

diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/06-simulation/01-matching/03-valve/XhsProjectSimulationValveMatchingListCtrl.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/06-simulation/01-matching/03-valve/XhsProjectSimulationValveMatchingListCtrl.cs
index 71ffdb7..6992205 100644
--- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/06-simulation/01-matching/03-valve/XhsProjectSimulationValveMatchingListCtrl.cs
+++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/06-simulation/01-matching/03-valve/XhsProjectSimulationValveMatchingListCtrl.cs
@@ -33,26 +33,17 @@
         {
             if (inputs == null)
                 return null;
-            var finishList = new List<ValveMatchingViewModel>();
             foreach (var item in inputs)
             {
-                var result = AssetsMatchingHelper.MatchingValve(item, alllist);
-                if (result != null)
-                {
-                    finishList.Add(result);
-                }
-                else
-                {
-                    finishList.Add(item);
-                }
+                AssetsMatchingHelper.MatchingValve(item, alllist);
             }
             _allBindingList.Clear();
-            foreach (var item in finishList)
+            foreach (var item in inputs)
             {
                 _allBindingList.Add(new XhsProjectSimulationValveMatchingViewModel(item));
             }
             this.valveFormViewModelBindingSource.ResetBindings(false);
-            return finishList;
+            return inputs;
         }
 
         //琛岀偣鍑讳簨浠�

--
Gitblit v1.9.3