lixiaojun
2025-01-07 db26311246d1c1cecadf4a22dc44ffa570ee40f2
WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-visual/11-cooling/SetHydroCoolingListDlg.cs
@@ -1,4 +1,6 @@
namespace Yw.WinFrmUI
using Yw.Model;
namespace Yw.WinFrmUI
{
    public partial class SetHydroCoolingListDlg : DevExpress.XtraEditors.XtraForm
    {
@@ -30,21 +32,32 @@
        /// </summary>
        public event Action<List<HydroVisualViewModel>> HydroChangedViewEvent;
        /// <summary>
        /// 绑定数据
        /// </summary>
        public void SetBindingData(Yw.Model.HydroModelInfo hydroInfo)
        public void SetBindingData
            (
                Yw.Model.HydroModelInfo hydroInfo,
                HydroChangeHelper changeHelper = null,
                HydroPropStatusHelper propStatusHelper = null
            )
        {
            this.hydroCoolingListCtrl1.SetBindingData(hydroInfo);
            this.hydroCoolingListCtrl1.SetBindingData(hydroInfo, changeHelper, propStatusHelper);
            this.hydroCoolingListCtrl1.SetBulkView();
        }
        /// <summary>
        /// 绑定数据
        /// </summary>
        public void SetBindingData(List<HydroVisualViewModel> allVisualViewModelList)
        public void SetBindingData
            (
                List<HydroVisualViewModel> allVisualViewModelList,
                HydroChangeHelper changeHelper = null,
                HydroPropStatusHelper propStatusHelper = null
            )
        {
            this.hydroCoolingListCtrl1.SetBindingData(allVisualViewModelList);
            this.hydroCoolingListCtrl1.SetBindingData(allVisualViewModelList, changeHelper, propStatusHelper);
            this.hydroCoolingListCtrl1.SetBulkView();
        }
@@ -71,5 +84,8 @@
        {
            this.HydroChangedViewEvent?.Invoke(obj);
        }
    }
}