222
tangxu
2025-01-13 1ecfbbf8b56f6c18f41cc1eead763c7fa93624ce
WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage.cs
@@ -9,7 +9,7 @@
using DPumpHydr.WinFrmUI.RLT.Native;
using DPumpHydr.WinFrmUI.RLT.Docking.Crown;
using DPumpHydr.WinFrmUI.Volute.TempCtrl;
using static DPumpHydr.WinFrmUI.RLT.Helper.CrownHelper;
//using static DPumpHydr.WinFrmUI.RLT.Helper.CrownHelper;
namespace DPumpHydr.WinFrmUI.Volute
{
@@ -21,21 +21,20 @@
        SectAreaDockPanel _sectAreaDockPanel = null;
        //参数控件
        ctrlHdrBaseInfo _ctrlHdrBaseInfo = null;
        ctrlGeomBaseInfo _ctrlGeomBaseInfo = null;
        ctrlHdrBaseInfo _ctrlHdrBaseInfo = null;
        ctrlSectionBundleInfo _ctrlSectionBundleInfo = null;
        ctrlSectionShapeInfo18 _ctrlSectionShapeInfo18 = null;
        ctrlSetOutflowParas _ctrlSetOutflowStyle = null;
        ctrlSetOutflowParas _ctrlSetOutflowParas = null;
        ctrlSetOutflowType _ctrlSetOutflowType = null;
        ctrlThicknessParas _ctrlThicknessParas = null;
        //参数
        ViewModel.HdrBaseInfo _hdrBaseInfo = null;
        ViewModel.GeomBaseInfo _geomBaseInfo = null;
        ViewModel.SectionBundleInfo _sectionBundleInfo = null;
        ViewModel.OtuflowParas _otuflowParas = null;
        ViewModel.OtuflowParas _outflowParas = null;
        ViewModel.eOutflowStyle _outflowType = ViewModel.eOutflowStyle.未知;
        private double _bodyThickness = 0;
        public MainViewPage()
        {
@@ -54,10 +53,10 @@
            ThemeProvider.Theme.Colors.HeaderBackground = Color.SteelBlue;
            ThemeProvider.Theme.Colors.GreyBackground = Color.White;
            DPumpHydr.WinFrmUI.RLT.Helper.CrownHelper.ThemeProvider.Theme.Colors.HeaderBackground = Color.SteelBlue;
            DPumpHydr.WinFrmUI.RLT.Helper.CrownHelper.ThemeProvider.Theme.Colors.GreyBackground = Color.White;
            //ThemeProvider.Theme.Colors.DarkBackground = Color.White;
            MainDockPanel.RightDockWidth = 320;
            MainDockPanel.RightDockWidth = 335;
            MainDockPanel.BottomDockHeight = 210;
        }
@@ -75,14 +74,13 @@
            _sectAreaDockPanel = new SectAreaDockPanel();
            _sectAreaDockPanel.DefaultDockArea = DPumpHydr.WinFrmUI.RLT.Enum.Crown.DockArea.Bottom;
            _sectAreaDockPanel.OnRefreshSingleSectBundle += (bundle , selectedPointIndex) =>
            _sectAreaDockPanel.OnRefreshSingleSectArea  += (sect_index , sect_area) =>
            {
                this._ctrlSectionBundleInfo.RefreshSectPara(bundle, selectedPointIndex);
                if(this._stepTreeDockPanel.CurrentStepID > this._stepTreeDockPanel.Step_ID_Section18_Full)
                {
                    this._ctrlSectionShapeInfo18.RefreshSectPara(bundle.ToSectionShapePara(selectedPointIndex));
                }
                this._ctrlSectionBundleInfo.RefreshSingleSectArea(sect_index, sect_area);
                //if(this._stepTreeDockPanel.CurrentStepID > this._stepTreeDockPanel.Step_ID_Section18_Full)
                //{
                //    this._ctrlSectionShapeInfo18.RefreshSectPara(bundle.ToSectionShapePara(selectedPointIndex));
                //}
            };
@@ -110,10 +108,11 @@
                //              
                if (arg2 != null)
                {
                    this.SetParasCtrl(arg2.ID);
                    if(arg1 == null || arg1.ID < arg2.ID)
                        this.SetParasCtrl(arg2.ID, DPumpHydr.ViewModel.eWizardStepDiretion.前进);
                    else
                        this.SetParasCtrl(arg2.ID, DPumpHydr.ViewModel.eWizardStepDiretion.后退);
                    //
                    this._stepTreeDockPanel.SetFocusedNode(arg2.ID);
                }