This is the change I made to Click_Subtract/Add/Multiply/DivideThis allows These two forms1+2+3+4+5+6=or1+2=+3=+4=+5=+6=Just two if statements. Adding Parenthesis is the the real challengeExample method:private void Subtract_Click(object sender, RoutedEventArgs e){ if (op1.Length != 0) Enter_Click(sender, e);if (input.Length == 0) input = result.ToString();op1 = input ;operation = '-' ;input = string.Empty ;}
This is the change I made to Click_Subtract/Add/Multiply/DivideThis allows These two forms1+2+3+4+5+6=or1+2=+3=+4=+5=+6=Just two if statements. Adding Parenthesis is the the real challengeExample method:private void Subtract_Click(object sender, RoutedEventArgs e){ if (op1.Length != 0) Enter_Click(sender, e);if (input.Length == 0) input = result.ToString();op1 = input ;operation = '-' ;input = string.Empty ;}