lixiaojun
2025-02-14 edf1c4d93a7463f911b263b3f177550ac17eea18
WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-visual/15-pipe/SetHydroPipeListDlg.cs
@@ -1,6 +1,4 @@
using Yw.Model;
namespace Yw.WinFrmUI
namespace Yw.WinFrmUI
{
    public partial class SetHydroPipeListDlg : DevExpress.XtraEditors.XtraForm
    {
@@ -12,7 +10,6 @@
            this.hydroPipeListCtrl1.HydroClickViewEvent += HydroPipeListCtrl1_HydroClickViewEvent;
            this.hydroPipeListCtrl1.HydroChangedInfoEvent += HydroPipeListCtrl1_HydroChangedInfoEvent;
            this.hydroPipeListCtrl1.HydroChangedViewEvent += HydroPipeListCtrl1_HydroChangedViewEvent;
            this.hydroPipeListCtrl1.ParterChangedEvent += HydroPipeListCtrl1_ParterChangedEvent;
        }
@@ -32,26 +29,32 @@
        /// 水力改变视图事件
        /// </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.hydroPipeListCtrl1.SetBindingData(hydroInfo);
            this.hydroPipeListCtrl1.SetBindingData(hydroInfo, changeHelper, propStatusHelper);
            this.hydroPipeListCtrl1.SetBulkView();
        }
        /// <summary>
        /// 绑定数据
        /// </summary>
        public void SetBindingData(List<HydroVisualViewModel> allVisualViewModelList)
        public void SetBindingData
            (
                List<HydroVisualViewModel> allVisualViewModelList,
                HydroChangeHelper changeHelper = null,
                HydroPropStatusHelper propStatusHelper = null
            )
        {
            this.hydroPipeListCtrl1.SetBindingData(allVisualViewModelList);
            this.hydroPipeListCtrl1.SetBindingData(allVisualViewModelList, changeHelper, propStatusHelper);
            this.hydroPipeListCtrl1.SetBulkView();
        }
@@ -79,11 +82,7 @@
            this.HydroChangedViewEvent?.Invoke(obj);
        }
        // 水力改变事件
        private void HydroPipeListCtrl1_ParterChangedEvent(HydroParterInfo arg1, eChangeType arg2)
        {
            this.ParterChangedEvent?.Invoke(arg1, arg2);
        }
    }
}