private void handleComputation() { string result = calculator.compute(num1, num2, operation); if (String.IsNullOrEmpty(result)) { display("error"); resetForm(); } else { resetForm(); num1 = result; display(num1); } }