lixiaojun
2024-12-02 54b0925cde5f2246ad59529f82a74753139eb104
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/11-pump/02-feat/SimulationPumpFeatDlg.cs
@@ -6,13 +6,31 @@
        {
            InitializeComponent();
            this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon;
            this.simulationPumpFeatCtrl1.SaveEvent += SimulationPumpFeatCtrl1_SaveEvent;
        }
        /// <summary>
        /// 保存事件
        /// </summary>
        public event Action<List<HydroWorkingPumpViewModel>> SaveEvent;
        private void SimulationPumpFeatCtrl1_SaveEvent(List<HydroWorkingPumpViewModel> obj)
        {
            this.SaveEvent?.Invoke(obj);
        }
        /// <summary>
        /// 绑定数据
        /// </summary>
        public void SetBindingData(Yw.Model.HydroModelInfo hydroInfo)
        {
            this.simulationPumpFeatCtrl1.SetBindingData(hydroInfo);
        }
        private void SimulationPumpFeatDlg_FormClosing(object sender, FormClosingEventArgs e)
        {
            this.simulationPumpFeatCtrl1.Save();
        }
    }
}