Ejemplo n.º 1
0
        partial void CalculateBtn_TouchUpInside(UIButton sender)
        {
            ResultLabel.ResignFirstResponder();
            double montant = 0;

            double.TryParse(Build.Text, out montant);
            double tipPercent = (10f + (TipPercentSegment.SelectedSegment * 5)) / 100f;
            double tips       = montant * tipPercent;

            MesTips.Add(tips);
            ResultLabel.Text = string.Format("le pourboire est de {0:C}", tips);
        }