private void SQRT_Click(object sender, EventArgs e) { Legend.Clear(); tmpRes = Calculator.Sqrt(InputBox.Text); Legend.Text = '=' + tmpRes; InputBox.Clear(); }
private void equally_Click(object sender, EventArgs e) { DigitClick(symbols[15]); Legend.Clear(); tmpRes = c.Calculate(InputBox.Text); InputBox.Text += tmpRes; Legend.Text += InputBox.Text; InputBox.Clear(); }
private void equally_Click(object sender, EventArgs e) { DigitClick(symbols[15]); Legend.Clear(); try { tmpRes = c.Calculate(InputBox.Text); } catch (ArgumentOutOfRangeException) { MessageBox.Show("OutOfRange exception!!\nArgument is not correct!!!\nMaximal lenght of chisla is can't be meow than 10 symbols!"); } InputBox.Text += tmpRes; Legend.Text += InputBox.Text; InputBox.Clear(); }