private void AtualizarStatus() { PersistGrupoOfertaCommand.ChangeCanExecute(); InteractGrupoOfertaCommand.ChangeCanExecute(); RemoverGrupoCommand.ChangeCanExecute(); RemoverParticipanteSelecionadoCommand.ChangeCanExecute(); OnPropertyChanged(nameof(SecondaryAction)); OnPropertyChanged(nameof(SearchText)); }
private void ExecuteStoreParticipanteAsync(ParticipanteLista participante) { if (CachedList.Count > 0) {//está pesquisando Members.Add(editListaCompraDetalheViewModel.AdicionarParticipante(participante)); CachedList.Add(participante); SearchText = string.Empty; AtualizarStatus(); return; } this.participanteListaCompra = participante; RemoverParticipanteSelecionadoCommand.ChangeCanExecute(); }
private async void ExecuteStoreParticipanteAsync(ParticipanteGrupo participante) { if (CachedList.Count > 0) {//está pesquisando AdicionarParticipante(participante); await grupoOfertaService.ParticiparGrupoAsync(editGrupoOferta, Members.Last()); CachedList.Add(participante); SearchText = string.Empty; //ExecuteSearchUser(""); AtualizarStatus(); return; } this.participanteGrupoOferta = participante; RemoverParticipanteSelecionadoCommand.ChangeCanExecute(); }
private void AtualizarStatus() { RemoverParticipanteSelecionadoCommand.ChangeCanExecute(); OnPropertyChanged(nameof(SearchText)); }