| | |
| | | } |
| | | 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(); |
| | | } |
| | | } |
| | | |