WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage_ExportImport.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage_StepInfo.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WinFrmUI/DPumpHydr.WinFrmUI.Volute/Occ/OccDesignBaseCtrl.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WinFrmUI/DPumpHydr.WinFrmUI.Volute/出水设计/ctrlSetOutflowParas.Designer.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WinFrmUI/DPumpHydr.WinFrmUI.Volute/出水设计/ctrlSetOutflowParas.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WinFrmUI/DPumpHydr.WinFrmUI.Volute/出水设计/ctrlSetOutflowParas.resx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WinFrmUI/DPumpHydr.WinFrmUI.Volute/断面设计/ViewModel/SectionBundleInfo.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WinFrmUI/DPumpHydr.WinFrmUI.Volute/断面设计/ViewModel/SectionShapePara.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WinFrmUI/DPumpHydr.WinFrmUI.Volute/断面设计/ctrlSectionBundleInfo.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage_ExportImport.cs
@@ -135,7 +135,7 @@ CreateOutflowStepCtrl(); DockStepParaCtrl(_ctrlSetOutflowParas); _ctrlSetOutflowParas.Isxml = true; InitilOutflowStepCtrl(this._stepTreeDockPanel.Step_ID_Section18_Full); this._occDesign2dCtrl.SetAllSectionCurveVisible(false); @@ -153,6 +153,7 @@ DockStepParaCtrl(_ctrlThicknessParas); _stepTreeDockPanel.SetFocusedNode(this._stepTreeDockPanel.Step_ID_Thickness); GoNextStep(); #endregion } WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage_StepInfo.cs
@@ -97,7 +97,7 @@ { if (!SaveParaStep4()) return false; if (next_step_id < current_step_id) if (next_step_id < current_step_id && next_step_id != 0) {//å é¤å åä½ this._occDesign3dCtrl.RemoveThicknessBody( ); } @@ -155,7 +155,19 @@ this.Rbtnæ°æ®å¯¼åºSTP.Visible = true; this.Rbtnæ°æ®å¯¼åºIGS.Visible = true; } else else if (current_step_id == this._stepTreeDockPanel.Step_ID_Thickness && next_step_id == 0) { this.RBtnåé.Enabled = true; this.Rbtnåè¿.Enabled = false; this.Rbtnä¸ä¸æ¥.Enabled = true; this.Rbtnä¸ä¸æ¥.Enabled = false; this.Rbtn宿.Enabled = true; this.Rbtnæ°æ®å¯¼åºSTP.Visible = true; this.Rbtnæ°æ®å¯¼åºIGS.Visible = true; } else { this.RBtnåé.Enabled = true; this.Rbtnåè¿.Enabled = true; WinFrmUI/DPumpHydr.WinFrmUI.Volute/Occ/OccDesignBaseCtrl.cs
@@ -411,6 +411,7 @@ } else { MessageBox.Show(theToolTips.GetToolTips(), "æç¤º"); return false; } } @@ -439,6 +440,7 @@ } else { MessageBox.Show(theToolTips.GetToolTips(), "æç¤º"); return false ; } } @@ -458,9 +460,11 @@ if (pDisplayView.hasBuildThicknessBody()) pDisplayView.ClearTopoShape(TopoTypeDisplay.EThicknessBody); var tt = pDisplayView.buildWaterBody(theHydrProperties, pHydrGeomCurve); if (tt.GetTipsId() != 1) { } Invalidate(true); pDisplayView.FitAll3DViews(true); return tt; } public HydrEngineCSharp.ToolTips Create3DWaterBody(HydrEngineCSharp.WaterBodyOuterArcParam pHydrGeomArcCurve) @@ -478,9 +482,13 @@ if (pDisplayView.hasBuildThicknessBody()) pDisplayView.ClearTopoShape(TopoTypeDisplay.EThicknessBody); var tt = pDisplayView.buildWaterBody(theHydrProperties, pHydrGeomArcCurve); if (tt.GetTipsId() != 1) { } Invalidate(true); pDisplayView.FitAll3DViews(true); return tt; } public HydrEngineCSharp.ToolTips Edit3DWaterBody(HydrEngineCSharp.WaterBodyOuterSpParam pHydrGeomCurve) @@ -495,7 +503,7 @@ return null; if (tt.GetTipsId() != 1) { MessageBox.Show(tt.GetToolTips(), "æç¤º"); } Invalidate(true); @@ -514,7 +522,7 @@ return null; if (tt.GetTipsId() != 1) { MessageBox.Show(tt.GetToolTips(), "æç¤º"); } Invalidate(true); WinFrmUI/DPumpHydr.WinFrmUI.Volute/³öË®Éè¼Æ/ctrlSetOutflowParas.Designer.cs
@@ -28,18 +28,18 @@ /// </summary> private void InitializeComponent() { metroTileåºå£å¾ç = new RLT.Controls.MetroTile(); thunderGroupBox1 = new RLT.Controls.ThunderGroupBox(); metroTileåºå£å¾ç = new DPumpHydr.WinFrmUI.RLT.Controls.MetroTile(); thunderGroupBox1 = new DPumpHydr.WinFrmUI.RLT.Controls.ThunderGroupBox(); comboBoxType = new System.Windows.Forms.ComboBox(); metroToolTipç¬¬å æ¥æç¤º = new RLT.Controls.MetroToolTip(); ribbonGroupBox1 = new RLT.Controls.RibbonGroupBox(); metroToolTipç¬¬å æ¥æç¤º = new DPumpHydr.WinFrmUI.RLT.Controls.MetroToolTip(); ribbonGroupBox1 = new DPumpHydr.WinFrmUI.RLT.Controls.RibbonGroupBox(); checkBoxåå¼§è¿æ¥ = new System.Windows.Forms.CheckBox(); btnNextStep = new RLT.Controls.ForeverButtonSticky(); dungeonTabPage1 = new RLT.Controls.DungeonTabPage(); btnNextStep = new DPumpHydr.WinFrmUI.RLT.Controls.ForeverButtonSticky(); dungeonTabPage1 = new DPumpHydr.WinFrmUI.RLT.Controls.DungeonTabPage(); tabPage1 = new System.Windows.Forms.TabPage(); tabPage2 = new System.Windows.Forms.TabPage(); ctrlSection910Posi1 = new ctrlSection910Posi(); mBtnæ´æ°æ¨¡å = new RLT.Controls.ForeverButtonSticky(); mBtnæ´æ°æ¨¡å = new DPumpHydr.WinFrmUI.RLT.Controls.ForeverButtonSticky(); thunderGroupBox1.SuspendLayout(); ribbonGroupBox1.SuspendLayout(); dungeonTabPage1.SuspendLayout(); WinFrmUI/DPumpHydr.WinFrmUI.Volute/³öË®Éè¼Æ/ctrlSetOutflowParas.cs
@@ -107,6 +107,12 @@ return _sharp_type; } } bool _isxml = false; public bool Isxml { get { return _isxml; } set { _isxml = value; } } private void InitialOutflowStyle() { if (_parasControlCenter == null) @@ -172,11 +178,20 @@ if(outflowParas != null) { _sharp_type = outflowParas.ShapeStyle; _link_type = outflowParas.LinkStyle; } // InitialCtrlDefaultParas(hdrBaseInfo, geomBaseInfo, sectionBundleInfo, outflowParas); if(_link_type == eOutflowLinkStyle.æ²çº¿) { checkBoxåå¼§è¿æ¥.Checked = false; } else { checkBoxåå¼§è¿æ¥.Checked = true; } if (_sharp_type == eOutflowShapeStyle.æªç¥) { @@ -185,9 +200,15 @@ } else { comboBoxType.SelectedIndex = (int)_sharp_type; if (_isxml) { _isxml = false; } InitialOutflowStyle(); RefreshModel(); RefreshModel(); } return 1; @@ -622,8 +643,8 @@ else if (comboBoxType.SelectedIndex == 1) { _sharp_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowShapeStyle.ä¾§é¢åºå£_æ²çº¿è¿æ¥; checkBoxåå¼§è¿æ¥.Enabled = false; checkBoxåå¼§è¿æ¥.Visible = false; checkBoxåå¼§è¿æ¥.Enabled = true; checkBoxåå¼§è¿æ¥.Visible = true; _link_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowLinkStyle.æ²çº¿; if (checkBoxåå¼§è¿æ¥.Checked) { @@ -641,10 +662,13 @@ checkBoxåå¼§è¿æ¥.Visible = false; _link_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowLinkStyle.æ²çº¿; } if (_isxml) { return; } InitialOutflowStyle(); RefreshModel(); RefreshModel(); } private void btnNextStep_Click(object sender, EventArgs e) @@ -662,6 +686,10 @@ { _link_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowLinkStyle.ç´çº¿åå¼§; } if (_isxml) { return; } InitialOutflowStyle(); WinFrmUI/DPumpHydr.WinFrmUI.Volute/³öË®Éè¼Æ/ctrlSetOutflowParas.resx
@@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <root> <!-- Microsoft ResX Schema Microsoft ResX Schema Version 2.0 @@ -48,7 +48,7 @@ value : The object must be serialized with : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.soap.base64 value : The object must be serialized with : System.Runtime.Serialization.Formatters.Soap.SoapFormatter WinFrmUI/DPumpHydr.WinFrmUI.Volute/¶ÏÃæÉè¼Æ/ViewModel/SectionBundleInfo.cs
@@ -630,6 +630,7 @@ { return -1; } var bb = (-b + Math.Sqrt(delta)) / (2 * a); return Math.Round((-b + Math.Sqrt(delta)) / (2 * a), 1); } } @@ -653,11 +654,15 @@ var R_Left = R; if (R_Left > (Height + 1)) R_Left = Math.Round(Height * 0.85 - 1, 0); var conditionHeight = Height; if (R_out !=1500) { conditionHeight = conditionHeight-3; } if (R_Left * (1 + Math.Sin(Gama * Math.PI / 180)) > Height - 3) if (R_Left * (1 + Math.Sin(Gama * Math.PI / 180)) > conditionHeight) { R_Left = (Height - 3) / (1 + Math.Sin(Gama * Math.PI / 180)); R_Left = conditionHeight / (1 + Math.Sin(Gama * Math.PI / 180)); } @@ -673,9 +678,9 @@ var c = this.R_out / 1000; var TopWidth = this.BaseWidth + (2 * x); var Slash = (Height - R_Left - (Math.Sin(Gama * Math.PI / 180) * R_Left)) / Math.Cos(Gama * Math.PI / 180); if ((this.ShapeType != eSectionShapeType.ç©å½¢ && (TopWidth < c || Slash < c)) || R_Left == 0) if ((this.ShapeType != eSectionShapeType.ç©å½¢ && (TopWidth < c || Slash < c)) || R_Left == 0 ) { R_Left = R_Left - 1; R_Left = R_Left - 1; } else { @@ -686,6 +691,11 @@ break; } } if (R_Left<=0) { R_Left = 1; } return Math.Round(R_Left,1); } } WinFrmUI/DPumpHydr.WinFrmUI.Volute/¶ÏÃæÉè¼Æ/ViewModel/SectionShapePara.cs
@@ -14,6 +14,9 @@ /// </summary> public class SectionShapePara { /// <summary> /// /// </summary> public int Index { get; set; }//æé¢åºå· 第8æé¢å°±æ¯8 ç¬¬ä¸æé¢å°±æ¯1 public double Gama_Left { get; set; }//è§åº¦1 public double Gama_Right { get; set; }//è§åº¦2 WinFrmUI/DPumpHydr.WinFrmUI.Volute/¶ÏÃæÉè¼Æ/ctrlSectionBundleInfo.cs
@@ -472,9 +472,9 @@ } else { var initialR = _sectionBundleInfo.CalInitialR(_hdrBaseInfo, _geomBaseInfo); var height = _sectionBundleInfo.CalcHeight(_geomBaseInfo, index, result, initialR[index]); var R = _sectionBundleInfo.CheckChamferR(height, index, result, initialR[index]); //var initialR = _sectionBundleInfo.CalInitialR(_hdrBaseInfo, _geomBaseInfo); var height = _sectionBundleInfo.CalcHeight(_geomBaseInfo, index, result, _sectionBundleInfo.R_Left[index]); var R = _sectionBundleInfo.CheckChamferR(height, index, result, _sectionBundleInfo.R_Left[index]); SkyTextBox controlh1 = this.Controls.Find($"skyTextBoxæé¢H1{index}", true).FirstOrDefault() as SkyTextBox; SkyTextBox controlr1 = this.Controls.Find($"skyTextBoxæé¢r1{index}", true).FirstOrDefault() as SkyTextBox; controlh1.Text = height.ToString(); @@ -493,7 +493,7 @@ { skytextBox.Text = _sectionBundleInfo.GaMa_Right[index].ToString(); } if (string.IsNullOrEmpty(skytextBox.Text)) if (string.IsNullOrEmpty(skytextBox.Text) || Convert.ToDouble(skytextBox.Text) == 0) { MessageBox.Show("rä¸åçï¼è¯·éæ°è¾å ¥"); } @@ -549,7 +549,7 @@ var c = _sectionBundleInfo.R_out / 1000; var TopWidth = _sectionBundleInfo.BaseWidth + (2 * x); var Slash = (Convert.ToDouble(controlh1.Text) - Convert.ToDouble(controlr1.Text) - (Math.Sin(Convert.ToDouble(controlGaMa1.Text) * Math.PI / 180) * Convert.ToDouble(controlr1.Text))) / Math.Cos(Convert.ToDouble(controlGaMa1.Text) * Math.PI / 180); if ((!RBtnç©å½¢.Checked && (TopWidth < c || Slash < c)) || Convert.ToDouble(controlr1.Text) == 0) if ((!RBtnç©å½¢.Checked && (TopWidth < c || Slash < c - 0.1))) // { controlr1.BackColor = Color.OrangeRed; MessageBox.Show("rä¸åçï¼è¯·éæ°è¾å ¥"); @@ -718,14 +718,14 @@ SkyTextBox controH1 = this.Controls.Find(controlnameHeight, true).FirstOrDefault() as SkyTextBox; controly1.Enabled = true; if (controly1 != null) controly1.Text = Math.Round(_sectionBundleInfo.GaMa_Left[sect_index], 1).ToString(); if (controly2 != null) controly2.Text = Math.Round(_sectionBundleInfo.R_Left[sect_index], 1).ToString(); if (controlæé¢é¢ç§¯ != null) controlæé¢é¢ç§¯.Text = Math.Round(_sectionBundleInfo.Area[sect_index], 1).ToString(); if (controH1 != null) controH1.Text = Math.Round(_sectionBundleInfo.H[sect_index], 1).ToString(); if (controly2 != null) controly2.Text = Math.Round(_sectionBundleInfo.R_Left[sect_index], 1).ToString(); if (controly1 != null) controly1.Text = Math.Round(_sectionBundleInfo.GaMa_Left[sect_index], 1).ToString(); } }