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