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