duheng
2024-09-20 8a8983dd2053b631c559b257b1501d740bedf4a5
WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/06-simulation/01-AutoMatching/AssetsAutoMatchingMainDlg.cs
@@ -2,15 +2,20 @@
{
    public partial class AssetsAutoMatchingMainDlg : DevExpress.XtraEditors.XtraForm
    {
        public AssetsAutoMatchingMainDlg(AssetsAutoMatchingInputViewModel assetsAutoMatchingInputViewModel)
        public AssetsAutoMatchingMainDlg()
        {
            _assetsAutoMatching = assetsAutoMatchingInputViewModel;
            InitializeComponent();
        }
        public event Func<AssetsAutoMatchingInputViewModel, bool> RelaodEvent = null;
        private AssetsAutoMatchingInputViewModel _assetsAutoMatching = null;
        public void SetBindingData(AssetsAutoMatchingInputViewModel assetsAutoMatchingInputViewModel)
        {
            _assetsAutoMatching = assetsAutoMatchingInputViewModel;
            this.AssetsMainChoicePage.SetBindingData(_assetsAutoMatching);
        }
        //完成
        private void btnComplete_Click(object sender, EventArgs e)
@@ -28,10 +33,10 @@
        }
        //自动匹配
        private void BtnAutoMatching_Click(object sender, EventArgs e)
        private async void BtnAutoMatching_Click(object sender, EventArgs e)
        {
            WaitFormHelper.ShowWaitForm(this);
            _assetsAutoMatching = this.AssetsMainChoicePage.SetMatching(_assetsAutoMatching);
            _assetsAutoMatching = await this.AssetsMainChoicePage.SetMatching(_assetsAutoMatching);
            WaitFormHelper.HideWaitForm(this);
        }
    }