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