예제 #1
0
        private void handleComputation()
        {
            string result = calculator.compute(num1, num2, operation);

            if (String.IsNullOrEmpty(result))
            {
                display("error");
                resetForm();
            }
            else
            {
                resetForm();
                num1 = result;
                display(num1);
            }
        }