Example #1
0
File: Form1.cs Project: Muragul/PP2
 private void button10_Click(object sender, EventArgs e)
 {
     if (calc.operation == "x^2" || calc.operation == "root" || calc.operation == "sin" || calc.operation == "cos")
     {
         calc.MathFunc();
     }
     else
     {
         calc.second_number = double.Parse(display.Text);
         calc.Calculate();
     }
     display.Text = calc.result + "";
 }