コード例 #1
0
        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();
        }
コード例 #2
0
        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;
            }
        }