Exemplo n.º 1
0
        private async Task OnNavigationAsync(string page)
        {
            switch (page)
            {
            case "Profile":
                await PageNavigation.NavigateToAsync <ProfileViewModel>(UserName);

                break;

            case "Settings":
                await PageNavigation.NavigateToAsync <SettingsViewModel>();

                break;

            case "History":
                await PageNavigation.NavigateToAsync <HistoryViewModel>();

                break;

            case "Address":
                await PageNavigation.NavigateToAsync <AddressViewModel>();

                break;

            case "Payments":
                await PageNavigation.NavigateToAsync <PaymentsViewModel>();

                break;
            }
        }
Exemplo n.º 2
0
        private async Task OnCategorySelectionAsync(Category category)
        {
            if (category == null)
            {
                return;
            }

            await PageNavigation.NavigateToAsync <ProductsViewModel>(category);

            SelectedCategory = null;
        }
Exemplo n.º 3
0
        private async Task OnProductDetails(Product product)
        {
            if (product == null)
            {
                return;
            }

            await PageNavigation.NavigateToAsync <ProductDetailsViewModel>(product);

            SelectedProduct = null;
        }
Exemplo n.º 4
0
 private async Task OnProductDetailsAsync(Product product)
 {
     await PageNavigation.NavigateToAsync <ProductDetailsViewModel>(product);
 }
Exemplo n.º 5
0
 private async Task OnRegister()
 {
     await PageNavigation.NavigateToAsync <RegistrationViewModel>();
 }