Esempio n. 1
0
 public void Cancel_Tapped(System.Object sender, System.EventArgs e)
 {
     if (_resultCompletion != null)
     {
         _resultCompletion.SetResult(EditQuantityResponse.Fail());
         _resultCompletion = null;
     }
 }
Esempio n. 2
0
        public void Submit_Tapped(System.Object sender, System.EventArgs e)
        {
            errors.IsVisible = false;
            errors.Text      = "";
            if (Quantity < MinValue)
            {
                errors.IsVisible = true;
                errors.Text      = $"La cantidad no puede ser menor a {MinValue}";
                return;
            }

            if (_resultCompletion != null)
            {
                _resultCompletion.SetResult(EditQuantityResponse.Success(Quantity));
                _resultCompletion = null;
            }
        }