| | |
| | | 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 |
| | | { |
| | |
| | | LogListDockPanel _logListDockPanel = null; |
| | | LayersDockPanel _layersDockPanel = null; |
| | | SectAreaDockPanel _sectAreaDockPanel = null; |
| | | |
| | | //参数控件 |
| | | ctrlHdrBaseInfo _ctrlHdrBaseInfo = null; |
| | | ctrlSectionBundleInfo _ctrlSectionBundleInfo = null; |
| | | ctrlSectionShapeInfo18 _ctrlSectionShapeInfo18 = null; |
| | | ctrlSetOutflowParas _ctrlSetOutflowParas = null; |
| | | ctrlSetOutflowType _ctrlSetOutflowType = null; |
| | | ctrlThicknessParas _ctrlThicknessParas = null; |
| | | |
| | | //参数 |
| | | ViewModel.HdrBaseInfo _hdrBaseInfo = null; |
| | | ViewModel.GeomBaseInfo _geomBaseInfo = null; |
| | | ViewModel.SectionBundleInfo _sectionBundleInfo = null; |
| | | ViewModel.OtuflowParas _outflowParas = null; |
| | | ViewModel.eOutflowStyle _outflowType = ViewModel.eOutflowStyle.未知; |
| | | private double _bodyThickness = 0; |
| | | |
| | | public MainViewPage() |
| | | { |
| | | InitializeComponent(); |
| | |
| | | |
| | | |
| | | |
| | | 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; |
| | | } |
| | | |
| | |
| | | |
| | | _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)); |
| | | //} |
| | | }; |
| | | |
| | | |
| | |
| | | // |
| | | 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); |
| | | } |