TipCalculator Question

In the TipCalculator, there is a piece of code that implements the behavior for the Calculate button:

        calcButton.TouchUpInside += (s, e) => {             
            totalAmount.ResignFirstResponder();
            double value = 0;
            Double.TryParse(totalAmount.Text, out value);
                    resultLabel.Text = string.Format("Tip is {0:C}", value * 0.2);
                };

I understand what is going on inside the curly braces, but I don't understand the
role of the += assignment operator or the (s,e). I don't even see where s or e is
declared in the code. Someone explain, please. Thanks.

Best Answers

Answers

Sign In or Register to comment.