lixiaojun
2024-11-04 865ca7b89bde6b1793641c8421fc466695d48f6a
WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-parter/00-core/HydroParterListCtrl.cs
@@ -7,7 +7,7 @@
            InitializeComponent();
            foreach (var page in this.tabPane1.Pages)
            {
                if (page.Controls[0] is IViewHydroParterList ctrl)
                if (page.Controls[0] is IHydroParterList ctrl)
                {
                    ctrl.ShowFindPanel = false;
                    ctrl.HydroClickEvent += (parter) =>
@@ -55,7 +55,7 @@
            }
            foreach (var page in this.tabPane1.Pages)
            {
                if (page.Controls[0] is IViewHydroParterList ctrl)
                if (page.Controls[0] is IHydroParterList ctrl)
                {
                    ctrl.SetBindingData(hydroInfo, allCalcuResultList);
                    if (HidePageWhenListIsNull)
@@ -76,7 +76,7 @@
        {
            foreach (var page in this.tabPane1.Pages)
            {
                if (page.Controls[0] is IViewHydroParterList ctrl)
                if (page.Controls[0] is IHydroParterList ctrl)
                {
                    ctrl.SetSimpleView();
                }
@@ -90,7 +90,7 @@
        {
            foreach (var page in this.tabPane1.Pages)
            {
                if (page.Controls[0] is IViewHydroParterList ctrl)
                if (page.Controls[0] is IHydroParterList ctrl)
                {
                    ctrl.SetNormalView();
                }
@@ -104,13 +104,26 @@
        {
            foreach (var page in this.tabPane1.Pages)
            {
                if (page.Controls[0] is IViewHydroParterList ctrl)
                if (page.Controls[0] is IHydroParterList ctrl)
                {
                    ctrl.SetCalcuView();
                }
            }
        }
        /// <summary>
        /// 设置批量设置视图
        /// </summary>
        public void SetBulkSetView()
        {
            foreach (var page in this.tabPane1.Pages)
            {
                if (page.Controls[0] is IHydroParterList ctrl)
                {
                    ctrl.SetBulkSetView();
                }
            }
        }