public GruposOfertasPageViewModel(AzureService azureService, GrupoOfertaService service)
 {
     NotSharing           = true;
     this.azureService    = azureService;
     grupoOfertaService   = service;
     NovoGrupoCommand     = new Command(ExecuteCriarNovoGrupoOfertaAsync);
     EditGroupCommand     = new Command <GrupoOferta>(ExecuteEditarGroupoOfertasAsync);
     SearchPublicGroup    = new Command <string>(ExecuteSearchPublicGroupAsync);
     GruposOfertasUsuario = new ObservableCollection <GrupoOferta>();
     CachedList           = new ObservableCollection <GrupoOferta>();
 }
Ejemplo n.º 2
0
 public ListagemUsuariosPageViewModel(AzureService azureService, GrupoOfertaService service, UserService userService)
 {
     this.azureService   = azureService;
     grupoOfertaService  = service;
     this.userService    = userService;
     SearchContact       = new Command(ExecuteOpenContactList);
     UserSelectedCommand = new Command <User>(ExecuteCompartilharOFertaUsuarioAsync);
     SearchUser          = new Command <string>(ExecuteSearchUserAsync);
     Users = new ObservableCollection <User>();
     Init();
 }
 public NovoGrupoOfertaPageViewModel(AzureService azureService, GrupoOfertaService service, UserService userService)
 {
     this.azureService          = azureService;
     grupoOfertaService         = service;
     this.userService           = userService;
     UserRepository             = new GenericRepository <User>(azureService);
     PersistGrupoOfertaCommand  = new Command(SalvarGrupoUsuarioAsync, PodeCriarGrupoOferta);
     InteractGrupoOfertaCommand = new Command(ExecutePermanenciaGrupoAsync, PodeInteragirGrupoOferta);
     SearchContact       = new Command(ExecuteOpenContactList);
     RemoverGrupoCommand = new Command(ExcluirGrupoOfertaAsync, PodeExcluirGrupo);
     RemoverParticipanteSelecionadoCommand = new Command(ExecuteRemoverParticipanteSelecionadoAsync, PodeExcluirParticipante);
     UserSelectedCommand = new Command <ParticipanteGrupo>(ExecuteStoreParticipanteAsync);
     SearchUser          = new Command <string>(ExecuteSearchUserAsync);
     Members             = new ObservableCollection <ParticipanteGrupo>();
     CachedList          = new ObservableCollection <ParticipanteGrupo>();
 }