namespace HStation.WinFrmUI
{
public partial class XhsProjectSimulationCalcuPrefixCtrl : DevExpress.XtraEditors.XtraUserControl
{
public XhsProjectSimulationCalcuPrefixCtrl()
{
InitializeComponent();
this.layoutControl1.SetupLayoutControl();
}
///
/// 水力点击事件
///
public event Action HydroClickEvent;
///
/// 取消事件
///
public event Action CancelEvent;
///
/// 确定事件
///
public event Action OkEvent;
///
/// 绑定数据
///
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();
}
}
}