//private string _expression = ""; //private string _leftSideExpression; //private string _rightSideExpression; //private double _rightSide; //private double _leftSide; //private double _total; //private string _calc; public void buttonClicked(object sender, CommandEventArgs args) { Calculator.HandleInput(args); switch (Calculator._state) { case CALCSTATE.ADD: Calculator.Add(); break; case CALCSTATE.SUBTRACT: Calculator.Subtract(); break; case CALCSTATE.MULTIPLY: Calculator.Multiply(); break; case CALCSTATE.DIVIDE: Calculator.Divide(); break; } calcInput.Text = Calculator.expression; calcTotal.Text = Calculator.runningTotal.ToString(); }