private void ButtonTwoBtn_Click(object sender, EventArgs e) { var _linFunSS = TextBoxLinFunA.SelectionStart; if (Checked._checkedTextBoxLinFunA == true) { TextBoxLinFunA.Focus(); TextBoxLinFunA.Text = TextBoxLinFunA.Text.Insert(_linFunSS, "2"); _linFunSS++; _a += Convert.ToDouble(TextBoxLinFunA.Text); TextBoxLinFunA.SelectionStart = _linFunSS; _charChecker.IsCommaCheckerFunLinAMethod(); _charChecker.IsMinusCheckerFunLinAMethod(); } var _linFunSSB = TextBoxLinFunB.SelectionStart; if (Checked._checkedTextBoxLinFunB == true) { TextBoxLinFunB.Focus(); TextBoxLinFunB.Text = TextBoxLinFunB.Text.Insert(_linFunSSB, "2"); _linFunSSB++; _b += Convert.ToDouble(TextBoxLinFunB.Text); TextBoxLinFunB.SelectionStart = _linFunSSB; _charChecker.IsCommaCheckerFunLinBMethod(); _charChecker.IsMinusCheckerFunLinBMethod(); } }
private void ButtonOneBtn_Click(object sender, EventArgs e) { var _linFunSS = TextBoxLinFunA.SelectionStart; //_valueString = ValueToAbsTxb.Text; //_isComma = _valueString.Contains(CommaSymbol); if (Checked._checkedTextBoxLinFunA == true) { TextBoxLinFunA.Focus(); TextBoxLinFunA.Text = TextBoxLinFunA.Text.Insert(_linFunSS, "1"); _linFunSS++; _a += Convert.ToDouble(TextBoxLinFunA.Text); TextBoxLinFunA.SelectionStart = _linFunSS; _charChecker.IsCommaCheckerFunLinAMethod(); _charChecker.IsMinusCheckerFunLinAMethod(); // _charChecker.IsMinusCheckerMethod(); } var _linFunSSB = TextBoxLinFunB.SelectionStart; if (Checked._checkedTextBoxLinFunB == true) { TextBoxLinFunB.Focus(); TextBoxLinFunB.Text = TextBoxLinFunB.Text.Insert(_linFunSSB, "1"); _linFunSSB++; _b += Convert.ToDouble(TextBoxLinFunB.Text); TextBoxLinFunB.SelectionStart = _linFunSSB; _charChecker.IsCommaCheckerFunLinBMethod(); _charChecker.IsMinusCheckerFunLinBMethod(); } }