namespace Yw.WinFrmUI
|
{
|
public partial class ApplyHydroGradingDlg : DevExpress.XtraEditors.XtraForm
|
{
|
public ApplyHydroGradingDlg()
|
{
|
InitializeComponent();
|
this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon;
|
this.applyHydroGradingCtrl1.CancelEvent += () =>
|
{
|
this.DialogResult = DialogResult.Cancel;
|
this.Close();
|
};
|
this.applyHydroGradingCtrl1.OkEvent += () =>
|
{
|
this.DialogResult = DialogResult.OK;
|
this.Close();
|
};
|
this.applyHydroGradingCtrl1.ReloadDataEvent += (obj) =>
|
{
|
this.ReloadDataEvent?.Invoke(obj);
|
};
|
}
|
|
/// <summary>
|
///
|
/// </summary>
|
public event Action<List<HydroGradingApplyResultViewModel>> ReloadDataEvent;
|
|
/// <summary>
|
///
|
/// </summary>
|
public void SetBindingData(Func<Yw.Model.HydroModelInfo> hydroInfoFunc, List<HydroGradingApplyViewModel> allApplyList, List<IHydroCalcuResult> allCalcuResultList)
|
{
|
this.applyHydroGradingCtrl1.SetBindingData(hydroInfoFunc, allApplyList, allCalcuResultList);
|
}
|
|
|
|
}
|
}
|