| | |
| | | this.hydroElbowListCtrl1.HydroClickViewEvent += HydroElbowListCtrl1_HydroClickViewEvent; |
| | | this.hydroElbowListCtrl1.HydroChangedInfoEvent += HydroElbowListCtrl1_HydroChangedInfoEvent; |
| | | this.hydroElbowListCtrl1.HydroChangedViewEvent += HydroElbowListCtrl1_HydroChangedViewEvent; |
| | | this.hydroElbowListCtrl1.ParterChangedEvent += HydroElbowListCtrl1_ParterChangedEvent; |
| | | } |
| | | |
| | | |
| | |
| | | /// 水力改变视图事件 |
| | | /// </summary> |
| | | public event Action<List<HydroVisualViewModel>> HydroChangedViewEvent; |
| | | /// <summary> |
| | | /// 构件改变事件 |
| | | /// </summary> |
| | | public event Action<HydroParterInfo, eChangeType> ParterChangedEvent; |
| | | |
| | | /// <summary> |
| | | /// 绑定数据 |
| | | /// </summary> |
| | | public void SetBindingData(Yw.Model.HydroModelInfo hydroInfo) |
| | | public void SetBindingData |
| | | ( |
| | | Yw.Model.HydroModelInfo hydroInfo, |
| | | HydroChangeHelper changeHelper = null, |
| | | HydroPropStatusHelper propStatusHelper = null |
| | | ) |
| | | { |
| | | this.hydroElbowListCtrl1.SetBindingData(hydroInfo); |
| | | this.hydroElbowListCtrl1.SetBindingData(hydroInfo, changeHelper, propStatusHelper); |
| | | this.hydroElbowListCtrl1.SetBulkView(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 绑定数据 |
| | | /// </summary> |
| | | public void SetBindingData(List<HydroVisualViewModel> allVisualViewModelList) |
| | | public void SetBindingData |
| | | ( |
| | | List<HydroVisualViewModel> allVisualViewModelList, |
| | | HydroChangeHelper changeHelper = null, |
| | | HydroPropStatusHelper propStatusHelper = null |
| | | ) |
| | | { |
| | | this.hydroElbowListCtrl1.SetBindingData(allVisualViewModelList); |
| | | this.hydroElbowListCtrl1.SetBindingData(allVisualViewModelList, changeHelper, propStatusHelper); |
| | | this.hydroElbowListCtrl1.SetBulkView(); |
| | | } |
| | | |
| | |
| | | this.HydroChangedViewEvent?.Invoke(obj); |
| | | } |
| | | |
| | | //水力改变事件 |
| | | private void HydroElbowListCtrl1_ParterChangedEvent(HydroParterInfo arg1, eChangeType arg2) |
| | | { |
| | | this.ParterChangedEvent?.Invoke(arg1, arg2); |
| | | } |
| | | |
| | | } |
| | | } |