| | |
| | | outflowParas2.H2 = 5; |
| | | outflowParas2.Dia = GetStdDia(outer_dia); |
| | | double height2 = 5 * (int)(((outflowParas2.Dia - Math.Sqrt(4 * sectionBundleInfo.Area[8] / Math.PI)) / (2 * Math.Tan(4 * Math.PI / 180))) / 5 + 0.5); |
| | | if(height2 < geomBaseInfo.D3/ 2) |
| | | { |
| | | height2 = geomBaseInfo.D3 * 0.75; |
| | | } |
| | | outflowParas2.Heigh = height2; |
| | | outflowParas2.Septalradius = 3; |
| | | _parasControlLine.InitialParas(hdrBaseInfo, geomBaseInfo, sectionBundleInfo); |
| | |
| | | var resp = OnRefreshShape3D(GetBindingData(out error)); |
| | | if (resp != null) |
| | | { |
| | | if (_link_type != eOutflowLinkStyle.鐩寸嚎鍦嗗姬 && _sharp_type != eOutflowShapeStyle.渚ч潰鍑哄彛_鐩寸嚎杩炴帴) |
| | | if (_link_type == eOutflowLinkStyle.鐩寸嚎鍦嗗姬 && _sharp_type != eOutflowShapeStyle.渚ч潰鍑哄彛_鐩寸嚎杩炴帴) |
| | | { |
| | | if (_sharp_type == eOutflowShapeStyle.涓績鍑哄彛) |
| | | { |
| | |
| | | if (comboBoxType.SelectedIndex == 0) |
| | | { |
| | | _sharp_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowShapeStyle.涓績鍑哄彛; |
| | | //checkBox鍦嗗姬杩炴帴.Enabled = true; |
| | | //checkBox鍦嗗姬杩炴帴.Visible = true; |
| | | //if (checkBox鍦嗗姬杩炴帴.Checked) |
| | | //{ |
| | | // _link_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowLinkStyle.鐩寸嚎鍦嗗姬; |
| | | //} |
| | | //else |
| | | //{ |
| | | _link_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowLinkStyle.鏇茬嚎; |
| | | //} |
| | | } |
| | | else if (comboBoxType.SelectedIndex == 1) |
| | | { |
| | | _sharp_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowShapeStyle.渚ч潰鍑哄彛_鏇茬嚎杩炴帴; |
| | | //checkBox鍦嗗姬杩炴帴.Enabled = false; |
| | | //checkBox鍦嗗姬杩炴帴.Visible = false; |
| | | _link_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowLinkStyle.鏇茬嚎; |
| | | //if (checkBox鍦嗗姬杩炴帴.Checked) |
| | | //{ |
| | | // _link_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowLinkStyle.鐩寸嚎鍦嗗姬; |
| | | //} |
| | | //else |
| | | //{ |
| | | _link_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowLinkStyle.鏇茬嚎; |
| | | //} |
| | | } |
| | | else if (comboBoxType.SelectedIndex == 2) |
| | | { |
| | | _sharp_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowShapeStyle.渚ч潰鍑哄彛_鐩寸嚎杩炴帴; |
| | | //checkBox鍦嗗姬杩炴帴.Enabled = false; |
| | | //checkBox鍦嗗姬杩炴帴.Visible = false; |
| | | _link_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowLinkStyle.鏇茬嚎; |
| | | } |
| | | |
| | | InitialOutflowStyle(); |
| | |
| | | |
| | | private void checkBox鍦嗗姬杩炴帴_CheckedChanged(object sender, EventArgs e) |
| | | { |
| | | if (!checkBox鍦嗗姬杩炴帴.Checked) |
| | | { |
| | | _link_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowLinkStyle.鏇茬嚎; |
| | | } |
| | | else |
| | | { |
| | | _link_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowLinkStyle.鐩寸嚎鍦嗗姬; |
| | | } |
| | | //if (!checkBox鍦嗗姬杩炴帴.Checked) |
| | | //{ |
| | | // _link_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowLinkStyle.鏇茬嚎; |
| | | //} |
| | | //else |
| | | //{ |
| | | // _link_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowLinkStyle.鐩寸嚎鍦嗗姬; |
| | | //} |
| | | |
| | | InitialOutflowStyle(); |
| | | //InitialOutflowStyle(); |
| | | |
| | | RefreshModel(); |
| | | //RefreshModel(); |
| | | } |
| | | } |
| | | } |