| | |
| | | _sectionBundleInfo = sectionBundle_info; |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// æ¾ç¤ºçé¢ |
| | | /// </summary> |
| | | /// <param name="base_info">åºæ¬åæ°</param> |
| | | /// <param name="geom_info">åºååæ°</param> |
| | | /// <param name="step_direction">åè¿/åé</param> |
| | | /// <param name="isRefreshModel">æ¯å¦éè¦è¦çæé¢åæ°</param> |
| | | public void ShowPage( |
| | | ViewModel.HdrBaseInfo base_info, |
| | | ViewModel.GeomBaseInfo geom_info, |
| | | DPumpHydr.ViewModel.eWizardStepDiretion step_direction, bool isRefreshModel = true) |
| | | DPumpHydr.ViewModel.eWizardStepDiretion step_direction, bool isRefreshModel = false) |
| | | { |
| | | if (step_direction == DPumpHydr.ViewModel.eWizardStepDiretion.åé) |
| | | { |
| | |
| | | _hdrBaseInfo = base_info; |
| | | _geomBaseInfo = geom_info; |
| | | } |
| | | if (isRefreshModel) |
| | | if (!isRefreshModel) |
| | | { |
| | | return; |
| | | } |
| | |
| | | } |
| | | |
| | | RefreshAllSectPara(_sectionBundleInfo); |
| | | |
| | | |
| | | |
| | | RefreshShape(_sectionBundleInfo); |
| | | } |
| | |
| | | } |
| | | 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(); |
| | |
| | | { |
| | | 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ä¸åçï¼è¯·éæ°è¾å
¥"); |
| | | } |
| | |
| | | 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ä¸åçï¼è¯·éæ°è¾å
¥"); |
| | |
| | | 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(); |
| | | } |
| | | } |
| | | |