public ListaDeComprasPageViewModel(AzureService azureService, ListaCompraService service)
 {
     this.azureService  = azureService;
     listaCompraService = service;
     NovaListaCommand   = new Command(ExecuteCriarNovaListaCompraAsync);
     EditListCommand    = new Command <ListaCompra>(ExecuteEditarGroupoOfertasAsync);
     SearchList         = new Command <string>(ExecuteSearchList);
     ListasUsuario      = new ObservableCollection <ListaCompra>();
     CachedList         = new ObservableCollection <ListaCompra>();
 }
 public ListaDeComprasDetalhePageViewModel(AzureService azureService, ListaCompraService service, UserService userService)
 {
     this.azureService               = azureService;
     this.listaCompraService         = service;
     PersistListaCompra              = new Command(SalvarGrupoUsuarioAsync, PodeCriarGrupoOferta);
     SairListaComprasCommand         = new Command(ExecutePermanenciaGrupoAsync, EditandoListaDeCompras);
     SimularComprasCommand           = new Command(ExecuteSimularComprasAsync, PodeExcluirLista);
     ListarParticipantesListaCommand = new Command(ExecuteListagemParticipantes);
     ProdutoListaCompraTappedCommand = new Command <ProdutoListaCompraViewModel>(ExecuteProdutoListaTapped);
     ProdutosListaCompra             = new ObservableCollection <GroupCollection <char, ProdutoListaCompraViewModel> >();
     CachedList    = new ObservableCollection <GroupCollection <char, ProdutoListaCompraViewModel> >();
     Members       = new ObservableCollection <ParticipanteLista>();
     SearchProduct = new Command <string>(ExecuteSearchProductAsync);
 }
 public ListaDeComprasPageParticipantesViewModel(AzureService azureService, UserService userService, ListaCompraService listaCompraService,
                                                 ListaDeComprasDetalhePageViewModel listaCompraDetalheViewModel)
 {
     this.azureService               = azureService;
     this.listaCompraService         = listaCompraService;
     this.userService                = userService;
     editListaCompraDetalheViewModel = listaCompraDetalheViewModel;
     UserRepository = new GenericRepository <User>(azureService);
     SearchContact  = new Command(ExecuteOpenContactList);
     RemoverParticipanteSelecionadoCommand = new Command(ExecuteRemoverParticipanteSelecionadoAsync, PodeExcluirParticipante);
     UserSelectedCommand = new Command <ParticipanteLista>(ExecuteStoreParticipanteAsync);
     SearchUser          = new Command <string>(ExecuteSearchUserAsync);
     CachedList          = new ObservableCollection <ParticipanteLista>();
     Members             = new ObservableCollection <ParticipanteLista>();
     Adapter();
 }