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 | 27 +++++++++++++++++++++++---- 1 files changed, 23 insertions(+), 4 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 3c7e180..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 @@ -2,18 +2,37 @@ { public partial class AssetsAutoMatchingMainDlg : DevExpress.XtraEditors.XtraForm { - public AssetsAutoMatchingMainDlg() + public AssetsAutoMatchingMainDlg(AssetsAutoMatchingInputViewModel assetsAutoMatchingInputViewModel) { + _assetsAutoMatching = assetsAutoMatchingInputViewModel; InitializeComponent(); } - public void SetBindingData() - { - } + public event Func<AssetsAutoMatchingInputViewModel, bool> RelaodEvent = null; + + 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); + _assetsAutoMatching = this.AssetsMainChoicePage.SetMatching(_assetsAutoMatching); + WaitFormHelper.HideWaitForm(this); } } } \ No newline at end of file -- Gitblit v1.9.3