Ejemplo n.º 1
0
 private void SQRT_Click(object sender, EventArgs e)
 {
     Legend.Clear();
     tmpRes      = Calculator.Sqrt(InputBox.Text);
     Legend.Text = '=' + tmpRes;
     InputBox.Clear();
 }
Ejemplo n.º 2
0
 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();
 }
Ejemplo n.º 3
0
 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();
 }