Example #1
0
        private void ExecuteOperation()
        {
            switch (Operation)
            {
            case "+":
                LabelResult.Text = Calculation.Summin(FirstNum, SecondNum).ToString();
                break;

            case "-":
                LabelResult.Text = Calculation.Subtraction(FirstNum, SecondNum).ToString();
                break;

            case "*":
                LabelResult.Text = Calculation.Multiplication(FirstNum, SecondNum).ToString();
                break;

            case "/":
                LabelResult.Text = Calculation.Division(FirstNum, SecondNum);
                break;

            case "^":
                LabelResult.Text = Calculation.Exponentiation(FirstNum, SecondNum).ToString();
                break;

            case "root":
                LabelResult.Text = Calculation.RootExtraction(FirstNum, SecondNum);
                break;

            default:
                break;
            }
        }