예제 #1
0
파일: FCalc.cs 프로젝트: Lsproger/Labs
 private void SQRT_Click(object sender, EventArgs e)
 {
     Legend.Clear();
     tmpRes      = Calculator.Sqrt(InputBox.Text);
     Legend.Text = '=' + tmpRes;
     InputBox.Clear();
 }
예제 #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();
 }
예제 #3
0
파일: FCalc.cs 프로젝트: Lsproger/Labs
 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();
 }