| | |
| | | { |
| | | 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(); |
| | | |
| | | } |
| | | } |
| | | } |