| | |
| | | { |
| | | error = ""; |
| | | bool isOk = true; |
| | | if (string.IsNullOrEmpty(mTextBoxEditè室平åé度.Text) || mTextBoxEditè室平åé度.Text == "请è¾å
¥" || double.Parse(mTextBoxEditè室平åé度.Text) == 0) |
| | | if (string.IsNullOrEmpty(mTextBoxEditè室平åé度.Text) || double.Parse(mTextBoxEditè室平åé度.Text) == 0) |
| | | { |
| | | error = "请è¾å
¥å¿
填项ï¼"; |
| | | isOk = false; |
| | |
| | | } |
| | | return isOk; |
| | | } |
| | | |
| | | public bool IsParameterChange() |
| | | { |
| | | if(double.Parse(mTextBoxEditè室平åé度.Text) != this._paras.V3) |
| | | { |
| | | return true; |
| | | } |
| | | if(RBtnæé¢å¯¹ç§°æ¢¯å½¢.Checked && this._paras.ShapeType == eSectionShapeType.对称) |
| | | { |
| | | return true; |
| | | } if(RBtnä¸å¯¹ç§°æ¢¯å½¢.Checked && this._paras.ShapeType == eSectionShapeType.ä¸å¯¹ç§°) |
| | | { |
| | | return true; |
| | | } if(RBtnç©å½¢.Checked && this._paras.ShapeType == eSectionShapeType.ç©å½¢) |
| | | { |
| | | return true; |
| | | } |
| | | if (double.Parse(skyTextBoxæé¢y18.Text) != this._paras.GaMa1[8]) |
| | | { |
| | | return true; |
| | | }if (double.Parse(skyTextBoxæé¢y28.Text) != this._paras.GaMa2[8]) |
| | | { |
| | | return true; |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | |
| | | private void BuildIcon() |
| | | { |
| | |
| | | { |
| | | skyLabelè室平åé度.Visible = false; |
| | | mTextBoxEditè室平åé度.TrailingIcon = null; |
| | | if (mTextBoxEditè室平åé度.Text == "请è¾å
¥") |
| | | { |
| | | mTextBoxEditè室平åé度.Text = ""; |
| | | } |
| | | } |
| | | |
| | | private void mTextBoxEditè室平åé度_Leave(object sender, EventArgs e) |
| | | { |
| | | if (string.IsNullOrEmpty(mTextBoxEditè室平åé度.Text) || double.Parse(mTextBoxEditè室平åé度.Text) == 0) |
| | | { |
| | | mTextBoxEditè室平åé度.Text = "请è¾å
¥"; |
| | | mTextBoxEditè室平åé度.Text = _paras.V3.ToString(); |
| | | } |
| | | } |
| | | |
| | |
| | | { |
| | | foreach (var s in mTextBoxEditè室平åé度.Text) |
| | | { |
| | | if (!double.TryParse(mTextBoxEditè室平åé度.Text, out double result) && !string.IsNullOrEmpty(mTextBoxEditè室平åé度.Text) && mTextBoxEditè室平åé度.Text != "请è¾å
¥") |
| | | if (!double.TryParse(mTextBoxEditè室平åé度.Text, out double result) && !string.IsNullOrEmpty(mTextBoxEditè室平åé度.Text) ) |
| | | { |
| | | mTextBoxEditè室平åé度.UseAccent = true; |
| | | mTextBoxEditè室平åé度.ShowAssistiveText = true; |
| | |
| | | { |
| | | if (!double.TryParse(skyTextBoxæé¢y18.Text, out double result) && !string.IsNullOrEmpty(skyTextBoxæé¢y18.Text)) |
| | | { |
| | | skyTextBoxæé¢y18.Text = ""; |
| | | skyTextBoxæé¢y18.Text = _paras.GaMa1[8].ToString(); |
| | | skyLabelæç¤ºy1.Visible = true; |
| | | break; |
| | | } |
| | |
| | | { |
| | | if (!double.TryParse(skyTextBoxæé¢y28.Text, out double result) && !string.IsNullOrEmpty(skyTextBoxæé¢y28.Text)) |
| | | { |
| | | skyTextBoxæé¢y28.Text = ""; |
| | | skyTextBoxæé¢y28.Text = _paras.GaMa2[8].ToString(); |
| | | skyLabelæç¤ºy2.Visible = true; |
| | | break; |
| | | } |