lixiaojun
2025-01-07 db26311246d1c1cecadf4a22dc44ffa570ee40f2
WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-visual/20-compressor/SetHydroCompressorListDlg.cs
@@ -12,7 +12,6 @@
            this.hydroCompressorListCtrl1.HydroClickViewEvent += HydroCompressorListCtrl1_HydroClickViewEvent;
            this.hydroCompressorListCtrl1.HydroChangedInfoEvent += HydroCompressorListCtrl1_HydroChangedInfoEvent;
            this.hydroCompressorListCtrl1.HydroChangedViewEvent += HydroCompressorListCtrl1_HydroChangedViewEvent;
            this.hydroCompressorListCtrl1.ParterChangedEvent += HydroCompressorListCtrl1_ParterChangedEvent;
        }
        /// <summary>
@@ -31,26 +30,33 @@
        /// 水力改变视图事件
        /// </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.hydroCompressorListCtrl1.SetBindingData(hydroInfo);
            this.hydroCompressorListCtrl1.SetBindingData(hydroInfo, changeHelper, propStatusHelper);
            this.hydroCompressorListCtrl1.SetBulkView();
        }
        /// <summary>
        /// 绑定数据
        /// </summary>
        public void SetBindingData(List<HydroVisualViewModel> allVisualViewModelList)
        public void SetBindingData
            (
                List<HydroVisualViewModel> allVisualViewModelList,
                HydroChangeHelper changeHelper = null,
                HydroPropStatusHelper propStatusHelper = null
            )
        {
            this.hydroCompressorListCtrl1.SetBindingData(allVisualViewModelList);
            this.hydroCompressorListCtrl1.SetBindingData(allVisualViewModelList, changeHelper, propStatusHelper);
            this.hydroCompressorListCtrl1.SetBulkView();
        }
@@ -78,11 +84,7 @@
            this.HydroChangedViewEvent?.Invoke(obj);
        }
        //构件改变事件
        private void HydroCompressorListCtrl1_ParterChangedEvent(HydroParterInfo arg1, eChangeType arg2)
        {
            this.ParterChangedEvent?.Invoke(arg1, arg2);
        }