private void AddPriveteStr(string str)
{
int startPosition = this.btxt_Formula.SelectionStart;
string org = this.btxt_Formula.Text;
this.btxt_Formula.Text = org.Substring(0, startPosition) + str + org.Substring(startPosition, org.Length - startPosition - this.btxt_Formula.SelectionLength);
this.btxt_Formula.SelectionStart = startPosition + str.Length;
this.btxt_Formula.Focus();
this.btxt_Formula.Select(startPosition + str.Length,0);
this.btxt_Formula.ScrollToCaret();
}
{
int startPosition = this.btxt_Formula.SelectionStart;
string org = this.btxt_Formula.Text;
this.btxt_Formula.Text = org.Substring(0, startPosition) + str + org.Substring(startPosition, org.Length - startPosition - this.btxt_Formula.SelectionLength);
this.btxt_Formula.SelectionStart = startPosition + str.Length;
this.btxt_Formula.Focus();
this.btxt_Formula.Select(startPosition + str.Length,0);
this.btxt_Formula.ScrollToCaret();
}