namespace Yw.WinFrmUI { public partial class SetHydroPumpListDlg : DevExpress.XtraEditors.XtraForm { public SetHydroPumpListDlg() { InitializeComponent(); this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon; this.hydroPumpListCtrl1.HydroClickInfoEvent += HydroPumpListCtrl1_HydroClickInfoEvent; this.hydroPumpListCtrl1.HydroClickViewEvent += HydroPumpListCtrl1_HydroClickViewEvent; this.hydroPumpListCtrl1.HydroChangedInfoEvent += HydroPumpListCtrl1_HydroChangedInfoEvent; this.hydroPumpListCtrl1.HydroChangedViewEvent += HydroPumpListCtrl1_HydroChangedViewEvent; } /// /// 水力点击事件 /// public event Action HydroClickInfoEvent; /// /// 水力点击视图事件 /// public event Action HydroClickViewEvent; /// /// 水力改变事件 /// public event Action> HydroChangedInfoEvent; /// /// 水力改变视图事件 /// public event Action> HydroChangedViewEvent; /// /// 绑定数据 /// public void SetBindingData(Yw.Model.HydroModelInfo hydroInfo) { this.hydroPumpListCtrl1.SetBindingData(hydroInfo); this.hydroPumpListCtrl1.SetBulkView(); } /// /// 绑定数据 /// public void SetBindingData(List allVisualViewModelList) { this.hydroPumpListCtrl1.SetBindingData(allVisualViewModelList); this.hydroPumpListCtrl1.SetBulkView(); } //水力点击信息事件 private void HydroPumpListCtrl1_HydroClickInfoEvent(Model.HydroVisualInfo obj) { this.HydroClickInfoEvent?.Invoke(obj); } //水力点击视图事件 private void HydroPumpListCtrl1_HydroClickViewEvent(HydroVisualViewModel obj) { this.HydroClickViewEvent?.Invoke(obj); } //水力改变信息事件 private void HydroPumpListCtrl1_HydroChangedInfoEvent(List obj) { this.HydroChangedInfoEvent?.Invoke(obj); } //水力改变视图事件 private void HydroPumpListCtrl1_HydroChangedViewEvent(List obj) { this.HydroChangedViewEvent?.Invoke(obj); } } }