namespace Yw.WinFrmUI { public partial class ApplyHydroGradingDlg : DevExpress.XtraBars.Ribbon.RibbonForm { public ApplyHydroGradingDlg() { InitializeComponent(); this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon; this.layoutControl1.SetupLayoutControl(); this.generalOkAndCancelCtrl1.OkEvent += GeneralOkAndCancelCtrl1_OkEvent; } /// /// 重载数据事件 /// public event Action> ReloadDataEvent; //所有绑定列表 private List _allBindingList = null; /// /// 绑定数据 /// public void SetBindingData(List allApplyList) { _allBindingList = allApplyList; this.applyHydroGradingCtrl1.SetBindingData(allApplyList); } //确定 private void GeneralOkAndCancelCtrl1_OkEvent() { _allBindingList = this.applyHydroGradingCtrl1.GetApplyList(); this.ReloadDataEvent?.Invoke(_allBindingList); this.DialogResult = DialogResult.OK; this.Close(); } } }