| | |
| | | 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.鏇茬嚎; |
| | | //} |
| | | 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 = true; |
| | | //checkBox鍦嗗姬杩炴帴.Visible = true; |
| | | checkBox鍦嗗姬杩炴帴.Enabled = true; |
| | | checkBox鍦嗗姬杩炴帴.Visible = true; |
| | | _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.鏇茬嚎; |
| | | //} |
| | | } |
| | | 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; |
| | | checkBox鍦嗗姬杩炴帴.Enabled = false; |
| | | checkBox鍦嗗姬杩炴帴.Visible = false; |
| | | _link_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowLinkStyle.鏇茬嚎; |
| | | } |
| | | if (_isxml) |
| | |
| | | |
| | | 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 (_isxml) |
| | | //{ |
| | | // InitialOutflowStyle(); |
| | | // return; |
| | | //} |
| | | if (!checkBox鍦嗗姬杩炴帴.Checked) |
| | | { |
| | | _link_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowLinkStyle.鏇茬嚎; |
| | | } |
| | | else |
| | | { |
| | | _link_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowLinkStyle.鐩寸嚎鍦嗗姬; |
| | | } |
| | | if (_isxml) |
| | | { |
| | | InitialOutflowStyle(); |
| | | return; |
| | | } |
| | | |
| | | //InitialOutflowStyle(); |
| | | InitialOutflowStyle(); |
| | | |
| | | //RefreshModel(); |
| | | RefreshModel(); |
| | | } |
| | | } |
| | | } |