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