| | |
| | | InitializeComponent(); |
| | | |
| | | _sharp_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowShapeStyle.鏈煡; |
| | | _link_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowLinkStyle.鏇茬嚎; |
| | | |
| | | |
| | | _parasControlCenter = new SetOutflowParasCtrl1() { Name = "SetOutflowParasCtrlCenter" }; |
| | |
| | | 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); |
| | |
| | | } |
| | | |
| | | _outflowParas.ShapeStyle = _sharp_type; |
| | | _outflowParas.LinkStyle = _link_type; |
| | | |
| | | return _outflowParas; |
| | | } |
| | |
| | | throw new Exception("鏈垵濮嬪寲ctrlSetOutflowParas鎺т欢"); |
| | | } |
| | | this._sharp_type = paras.ShapeStyle; |
| | | this._link_type = paras.LinkStyle; |
| | | var paras1 = new ViewModel.OutflowParas(paras); |
| | | var paras2 = new ViewModel.OutflowParas(paras); |
| | | var paras3 = new ViewModel.OutflowParas(paras); |
| | |
| | | { |
| | | comboBoxType.SelectedIndex = 2; |
| | | } |
| | | |
| | | if(_link_type == eOutflowLinkStyle.鐩寸嚎鍦嗗姬) |
| | | { |
| | | checkBox鍦嗗姬杩炴帴.Checked = true; |
| | | } |
| | | else |
| | | { |
| | | checkBox鍦嗗姬杩炴帴.Checked = false; |
| | | } |
| | | InitialOutflowStyle(); |
| | | } |
| | | |
| | |
| | | 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(); |