public MainMenuPageViewModel(AzureService azureService, SyncronizedAccessService syncronizeAccessService) { azure = azureService; this.syncronizeAccessService = syncronizeAccessService; NovaOfertaCommand = new Command(ExecuteCadastrarNovaOfertaAsync); ListarOfertasCommand = new Command(ExecuteListarOfertasCadastradasAsync); ListarGrupoOfertasCommand = new Command(ExecuteListarGrupoOfertasAsync); ListasDeComprasCommand = new Command(ExecuteListasDeComprasAsync); SignOutCommand = new Command(ExecuteSignOutAsync); InitilizeDatabaseAsync(); }
public LoadingPageViewModel(Operation operation, SyncronizedAccessService syncronizeService) { switch (operation) { case ViewModels.Operation.Login: Operation = "Carregando"; break; case ViewModels.Operation.SyncInitalDataBase: Operation = "Sincronizando dados para primeiro uso"; break; case ViewModels.Operation.SimulatingList: Operation = "Simulando compras"; break; default: break; } }