lixiaojun
2025-02-19 288e87195c7b604e87fe4b98aa759c5fff6e2346
WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-visual/02-tank/SetHydroTankListDlg.cs
@@ -1,6 +1,4 @@
using Yw.Model;
namespace Yw.WinFrmUI
namespace Yw.WinFrmUI
{
    public partial class SetHydroTankListDlg : DevExpress.XtraEditors.XtraForm
    {
@@ -12,7 +10,6 @@
            this.hydroTankListCtrl1.HydroClickViewEvent += HydroTankListCtrl1_HydroClickViewEvent;
            this.hydroTankListCtrl1.HydroChangedInfoEvent += HydroTankListCtrl1_HydroChangedInfoEvent;
            this.hydroTankListCtrl1.HydroChangedViewEvent += HydroTankListCtrl1_HydroChangedViewEvent;
            this.hydroTankListCtrl1.ParterChangedEvent += HydroTankListCtrl1_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.hydroTankListCtrl1.SetBindingData(hydroInfo);
            this.hydroTankListCtrl1.SetBindingData(hydroInfo, changeHelper, propStatusHelper);
            this.hydroTankListCtrl1.SetBulkView();
        }
        /// <summary>
        /// 绑定数据
        /// </summary>
        public void SetBindingData(List<HydroVisualViewModel> allVisualViewModelList)
        public void SetBindingData
            (
                List<HydroVisualViewModel> allVisualViewModelList,
                HydroChangeHelper changeHelper = null,
                HydroPropStatusHelper propStatusHelper = null
            )
        {
            this.hydroTankListCtrl1.SetBindingData(allVisualViewModelList);
            this.hydroTankListCtrl1.SetBindingData(allVisualViewModelList, changeHelper, propStatusHelper);
            this.hydroTankListCtrl1.SetBulkView();
        }
@@ -79,11 +82,6 @@
            this.HydroChangedViewEvent?.Invoke(obj);
        }
        //构件改变事件
        private void HydroTankListCtrl1_ParterChangedEvent(HydroParterInfo arg1, eChangeType arg2)
        {
            this.ParterChangedEvent?.Invoke(arg1, arg2);
        }