From a72a2fafc5cd95d9fae4957d855929fabf594415 Mon Sep 17 00:00:00 2001
From: duheng <2784771470@qq.com>
Date: 星期四, 19 九月 2024 22:56:57 +0800
Subject: [PATCH] 自动匹配修改

---
 WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/06-simulation/01-AutoMatching/AssetsAutoMatchingMainDlg.cs |   18 +++++++++++++-----
 1 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/06-simulation/01-AutoMatching/AssetsAutoMatchingMainDlg.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/06-simulation/01-AutoMatching/AssetsAutoMatchingMainDlg.cs
index 9eb376e..ef02b32 100644
--- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/06-simulation/01-AutoMatching/AssetsAutoMatchingMainDlg.cs
+++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/06-simulation/01-AutoMatching/AssetsAutoMatchingMainDlg.cs
@@ -8,22 +8,30 @@
             InitializeComponent();
         }
 
-        private AssetsAutoMatchingInputViewModel _assetsAutoMatching = null;
+        public event Func<AssetsAutoMatchingInputViewModel, bool> RelaodEvent = null;
 
-        public void SetBindingData()
-        {
-        }
+        private AssetsAutoMatchingInputViewModel _assetsAutoMatching = null;
 
         //瀹屾垚
         private void btnComplete_Click(object sender, EventArgs e)
         {
+            if (RelaodEvent.Invoke(_assetsAutoMatching))
+            {
+                TipFormHelper.ShowSucceed("淇敼鎴愬姛!");
+            }
+            else
+            {
+                TipFormHelper.ShowError("淇敼澶辫触!");
+            }
+            this.DialogResult = DialogResult.OK;
+            this.Close();
         }
 
         //鑷姩鍖归厤
         private void BtnAutoMatching_Click(object sender, EventArgs e)
         {
             WaitFormHelper.ShowWaitForm(this);
-            this.AssetsMainChoicePage.SetMatching(_assetsAutoMatching);
+            _assetsAutoMatching = this.AssetsMainChoicePage.SetMatching(_assetsAutoMatching);
             WaitFormHelper.HideWaitForm(this);
         }
     }

--
Gitblit v1.9.3