From a91c47d4ae8ad414e492a66f10eafce678892503 Mon Sep 17 00:00:00 2001
From: duheng <2784771470@qq.com>
Date: 星期四, 09 一月 2025 11:43:37 +0800
Subject: [PATCH] 修复权限远程问题

---
 WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/07-matching/17-flowmeter/AssetsFlowmeterSingleMatchingCtrl.cs |   19 ++++++++-----------
 1 files changed, 8 insertions(+), 11 deletions(-)

diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/07-matching/17-flowmeter/AssetsFlowmeterSingleMatchingCtrl.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/07-matching/17-flowmeter/AssetsFlowmeterSingleMatchingCtrl.cs
index 902a7c8..f4f8d91 100644
--- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/07-matching/17-flowmeter/AssetsFlowmeterSingleMatchingCtrl.cs
+++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/07-matching/17-flowmeter/AssetsFlowmeterSingleMatchingCtrl.cs
@@ -41,19 +41,17 @@
                 _selected = item;
             }
             Search();
+            await Task.Delay(300);
             if (_selected != null)
             {
                 if (_allBindingList != null && _allBindingList.Count > 0)
                 {
-                    await Task.Run(() =>
-                     {
-                         var dataSourceIndex = _allBindingList.FindIndex(x => x.Vmo == _selected);
-                         if (dataSourceIndex >= 0)
-                         {
-                             var rowIndex = this.gridView1.GetRowHandle(dataSourceIndex);
-                             this.gridView1.FocusedRowHandle = rowIndex;
-                         }
-                     });
+                    var dataSourceIndex = _allBindingList.FindIndex(x => x.Vmo == _selected);
+                    if (dataSourceIndex >= 0)
+                    {
+                        var rowIndex = this.gridView1.GetRowHandle(dataSourceIndex);
+                        this.gridView1.FocusedRowHandle = rowIndex;
+                    }
                 }
             }
         }
@@ -88,6 +86,5 @@
             }
             return vm.Vmo;
         }
-
     }
-}
+}
\ No newline at end of file

--
Gitblit v1.9.3