namespace HStation.WinFrmUI { public partial class SimulationThreelinkSingleMatchingDlg : DevExpress.XtraEditors.XtraForm { public SimulationThreelinkSingleMatchingDlg() { InitializeComponent(); this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon; } public event Action ReloadDataEvent; private HydroThreelinkMatchingViewModel _threelinkMatchingView = null; public void SetBindingData(HydroThreelinkMatchingViewModel ThreelinkMatchingViewModel) { this.ThreeLinkSingleMatchingForm1.SetBindingData(ThreelinkMatchingViewModel); _threelinkMatchingView = ThreelinkMatchingViewModel; } //确定 private void btnComplete_Click(object sender, EventArgs e) { ReloadDataEvent.Invoke(_threelinkMatchingView); this.Close(); } } }