lixiaojun
2025-01-07 59a54652c0ca8d064ead157802d21e06b0ea34e6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
namespace HStation.WinFrmUI
{
    public partial class SimulationPumpFeatDlg : DevExpress.XtraBars.Ribbon.RibbonForm
    {
        public SimulationPumpFeatDlg()
        {
            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();
 
        }
    }
}