Пример #1
0
 protected override void Validated(IErrorCollection errors)
 {
     if (_firstText != null)
     {
         _firstText.BecomeFirstResponder();
     }
     toastService.DisplayErrors(errors);
 }
        private void OnSubmit()
        {
            var errors = validator.Validate(this);

            if (!errors.IsValid)
            {
                toastService.DisplayErrors(errors); //Display errors here.
                return;
            }
            toastService.DisplayMessage("Submitted");
        }