private async void CtrcChangedCommandHandler() { if (Model.Number.IsInt() && !string.IsNullOrEmpty(Model.Digit) && Model.UnitEmission.IsInt()) { await _popupNavigation.PushAsync(new LoadingPopupPage()); var billOfLadingCollectorView = await _billOfLadingService.GetBillOfLading(Model.Number.ToInt(), Model.Digit, Model.UnitEmission); await _popupNavigation.PopAllAsync(); Model.BillOfLadingCollectorViewInfo = billOfLadingCollectorView.Response; if (Model.BillOfLadingCollectorViewInfo != null) { Model.PackAmount = Model.BillOfLadingCollectorViewInfo.PackAmount.ToString(); Model.NumberIsReadOnly = Model.DigitIsReadOnly = Model.UnitEmissionIsReadOnly = true; Model.PackIsReadOnly = false; Model.PackFocus(); AddMenuAdtionalBunttons(); } else { await _notificationService.NotifyAsync("CTRC inválido.", SoundEnum.Erros); } } else { Model.BillOfLadingCollectorViewInfo = null; MenuAdtionalButtons = new Dictionary <string, DelegateCommand>(); } }