| | |
| | | ViewModel.SectionBundleInfo _sectionBundleInfo = null; |
| | | ViewModel.HdrBaseInfo _hdrBaseInfo = null; |
| | | ViewModel.GeomBaseInfo _geomBaseInfo = null; |
| | | |
| | | |
| | | |
| | | public void ShowPage( |
| | | ViewModel.HdrBaseInfo base_info, |
| | | ViewModel.GeomBaseInfo geom_info, |
| | | DPumpHydr.ViewModel.eWizardStepDiretion step_direction) |
| | | DPumpHydr.ViewModel.eWizardStepDiretion step_direction,bool isxml) |
| | | { |
| | | if (step_direction == DPumpHydr.ViewModel.eWizardStepDiretion.åé) |
| | | { |
| | |
| | | } |
| | | this._hdrBaseInfo = base_info; |
| | | this._geomBaseInfo = geom_info; |
| | | |
| | | if (isxml) |
| | | { |
| | | return; |
| | | } |
| | | if (_sectionBundleInfo == null) |
| | | { |
| | | _sectionBundleInfo = new ViewModel.SectionBundleInfo(); |
| | |
| | | SkyTextBox controlGaMa1 = this.Controls.Find($"skyTextBoxæé¢y1{index}", true).FirstOrDefault() as SkyTextBox; |
| | | SkyTextBox controlh1 = this.Controls.Find($"skyTextBoxæé¢H1{index}", true).FirstOrDefault() as SkyTextBox; |
| | | //ç®åè¿ä¸ªåªæ£æµå¯¹ç§°ç b3-2(r1-(tan(Gama1)*(h-r1))) //è¥ä¸å¯¹ç§° b3-ï¼r1-(tan(Gama1)*(h-r1))ï¼-ï¼r2-(tan(Gama2)*(h-r2))ï¼ |
| | | if ((!RBtnç©å½¢.Checked && _sectionBundleInfo.BaseWidth-2*(Convert.ToDouble(controlr1.Text) - ( Math.Tan(Convert.ToDouble(controlGaMa1.Text) * Math.PI / 180)* (Convert.ToDouble(controlh1.Text)- Convert.ToDouble(controlr1.Text)))) < 1 )|| Convert.ToDouble(controlr1.Text) == 0) |
| | | var a = _sectionBundleInfo.BaseWidth - 2 * (Convert.ToDouble(controlr1.Text) - (Math.Tan(Convert.ToDouble(controlGaMa1.Text) * Math.PI / 180) * (Convert.ToDouble(controlh1.Text) - Convert.ToDouble(controlr1.Text))));//_sectionBundleInfo.R_out/200 |
| | | if ((!RBtnç©å½¢.Checked && _sectionBundleInfo.BaseWidth-2*(Convert.ToDouble(controlr1.Text) - ( Math.Tan(Convert.ToDouble(controlGaMa1.Text) * Math.PI / 180)* (Convert.ToDouble(controlh1.Text)- Convert.ToDouble(controlr1.Text)))) < 10) || Convert.ToDouble(controlr1.Text) == 0) |
| | | { |
| | | controlr1.BackColor = Color.OrangeRed; |
| | | MessageBox.Show("rä¸åçï¼è¯·éæ°è¾å
¥"); |