namespace Yw.WinFrmUI { public partial class HydroVisualListDlg : DevExpress.XtraEditors.XtraForm { public HydroVisualListDlg() { InitializeComponent(); this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon; this.hydroVisualListCtrl1.HydroClickInfoEvent += HydroWaterboxListCtrl1_HydroClickInfoEvent; this.hydroVisualListCtrl1.HydroClickViewEvent += HydroWaterboxListCtrl1_HydroClickViewEvent; this.hydroVisualListCtrl1.HydroChangedInfoEvent += HydroWaterboxListCtrl1_HydroChangedInfoEvent; this.hydroVisualListCtrl1.HydroChangedViewEvent += HydroWaterboxListCtrl1_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.hydroVisualListCtrl1.SetBindingData(hydroInfo); this.hydroVisualListCtrl1.SetBulkView(); } /// /// 绑定数据 /// public void SetBindingData(List allVisualViewModelList) { this.hydroVisualListCtrl1.SetBindingData(allVisualViewModelList); this.hydroVisualListCtrl1.SetBulkView(); } //水力点击信息事件 private void HydroWaterboxListCtrl1_HydroClickInfoEvent(Model.HydroVisualInfo obj) { this.HydroClickInfoEvent?.Invoke(obj); } //水力点击视图事件 private void HydroWaterboxListCtrl1_HydroClickViewEvent(HydroVisualViewModel obj) { this.HydroClickViewEvent?.Invoke(obj); } //水力改变信息事件 private void HydroWaterboxListCtrl1_HydroChangedInfoEvent(List obj) { this.HydroChangedInfoEvent?.Invoke(obj); } //水力改变视图事件 private void HydroWaterboxListCtrl1_HydroChangedViewEvent(List obj) { this.HydroChangedViewEvent?.Invoke(obj); } } }