From f7253b1a5b2a945d88e6ab230910a78c2cbbc7ad Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期二, 24 十二月 2024 20:31:31 +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