| | |
| | | //步骤控件 |
| | | StepTreeDockPanel _stepTreeDockPanel = null; |
| | | |
| | | //参数控件 |
| | | ctrlHdrBaseInfo _ctrlHdrBaseInfo = null; |
| | | ctrlGeomBaseInfo _ctrlGeomBaseInfo = null; |
| | | ctrlSectionBundleInfo _ctrlSectionBundleInfo = null; |
| | | ctrlSectionShapeInfo18 _ctrlSectionShapeInfo18 = null; |
| | | ctrlSetOutflowStyle _ctrlSetOutflowStyle = null; |
| | | ctrlSetOutflowType _ctrlSetOutflowType = null; |
| | | |
| | | //参数 |
| | | ViewModel.HdrBaseInfo _hdrBaseInfo = null; |
| | | ViewModel.GeomBaseInfo _geomBaseInfo = null; |
| | | ViewModel.SectionBundleInfo _sectionBundleInfo = null; |
| | | ViewModel.eOutflowStyle _type ; |
| | | |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | |
| | | //出水面参数 |
| | | if (step_id == this._stepTreeDockPanel.Step_ID_Outflow_Style) |
| | | { |
| | | _type = _ctrlSetOutflowType.GetBindingData(); |
| | | _outflowType = _ctrlSetOutflowType.GetBindingData(); |
| | | if (_ctrlSetOutflowStyle == null) |
| | | { |
| | | _ctrlSetOutflowStyle = new ctrlSetOutflowStyle(); |
| | | _ctrlSetOutflowStyle = new ctrlSetOutflowParas(); |
| | | _ctrlSetOutflowStyle.Name = "ctrlSetOutflowStyle"; |
| | | |
| | | var pt = _occDesign2dCtrl.CreateOutflowBody(); |
| | | if(pt != null) |
| | | { |
| | | _occDesign3dCtrl.CreateOutflowBody(pt); |
| | | } |
| | | _ctrlSetOutflowStyle.OnRefreshShape += CreateWaterBody; |
| | | _ctrlSetOutflowStyle.InitialParas(_outflowType, _hdrBaseInfo, _geomBaseInfo, _sectionBundleInfo); |
| | | } |
| | | |
| | | _ctrlSetOutflowStyle.SetOutflowStyle(_outflowType); |
| | | |
| | | |
| | | |
| | | _ctrlSetOutflowStyle.SetBindingData(_type); |
| | | _ctrlSetOutflowStyle.ShowPage(); |
| | | this._sectAreaDockPanel.RefreshControl(); |
| | | this._sectAreaDockPanel.Visible = true; |
| | | AddStepParaCtrl(_ctrlSetOutflowStyle); |
| | | string error = ""; |
| | | _otuflowParas = _ctrlSetOutflowStyle.GetBindingData(out error); |
| | | } |
| | | |
| | | if (step_id == this._stepTreeDockPanel.Step_ID_jiahout) |
| | | { |
| | | this._occDesign3dCtrl.CreateOutletBody3d(); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | |
| | | this._parasDockPanel.Controls.Clear(); |
| | | ctrl.Dock = DockStyle.Fill; |
| | | this._parasDockPanel.Controls.Add(ctrl); |
| | | } |
| | | /// <summary> |
| | | /// 蜗壳参数导出 |
| | | /// </summary> |
| | | public void VoluteDeriveArgument() |
| | | { |
| | | //if (_sectionBaseInfo == null) |
| | | //{ |
| | | // MessageBox.Show("您还没有完成定义参数!请定义完成后在进行导出!(至少完成第三步)"); |
| | | // return; |
| | | //} |
| | | //if (_currentStepID <= 21) |
| | | //{ |
| | | // DialogResult result = MessageBox.Show("确定不进行后续断面参数的调整,使用初始计算后的参数吗?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question); |
| | | // if (result == DialogResult.Cancel) |
| | | // { |
| | | // return; |
| | | // } |
| | | //} |
| | | //ViewModel.SectionShapePara VoluteArgument = new ViewModel.SectionShapePara(); |
| | | //string json = VoluteArgument.DeriveArgument(_sectionBaseInfo); |
| | | //string filePath = Path.Combine(@"C:\Users\THL\Desktop", $"蜗壳参数.json"); |
| | | //File.WriteAllText(filePath, json); |
| | | } |
| | | |
| | | #region 初始化步骤列表 |