lixiaojun
2024-10-29 1d8832e8e8e862a296f80c18ae2f1dac40419b68
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
37
38
39
40
41
42
43
44
45
46
namespace HStation.WinFrmUI
{
    public partial class XhsProjectSimulationCalcuPrefixCtrl : DevExpress.XtraEditors.XtraUserControl
    {
        public XhsProjectSimulationCalcuPrefixCtrl()
        {
            InitializeComponent();
            this.layoutControl1.SetupLayoutControl();
        }
 
        /// <summary>
        /// 水力点击事件
        /// </summary>
        public event Action<Yw.Model.HydroParterInfo> HydroClickEvent;
        /// <summary>
        /// 取消事件
        /// </summary>
        public event Action CancelEvent;
        /// <summary>
        /// 确定事件
        /// </summary>
        public event Action OkEvent;
 
        /// <summary>
        /// 绑定数据
        /// </summary>
        public void SetBindingData(Yw.Model.HydroModelInfo hydroInfo)
        {
            this.xhsProjectSimulationCalcuPrefixPureCtrl1.SetBindingData(hydroInfo);
        }
 
        //取消
        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.CancelEvent?.Invoke();
        }
 
        //确定
        private void btnOk_Click(object sender, EventArgs e)
        {
            this.OkEvent?.Invoke();
        }
 
 
    }
}