Ejemplo n.º 1
0
        public void calculateExpression(object sender, CommandEventArgs args)
        {
            if (calcInput.Text.Length == 0 && "+-*/".Contains(args.CommandArgument.ToString()))
            {
                return;
            }
            var calcOperator = args.CommandArgument;

            Calculator.ApplyOperator(calcOperator);
            calcInput.Text = Calculator.expression;
        }