Пример #1
0
        public HomePageViewModel(INavigationService navigationService, IProductsManager productsManager) : base(navigationService)
        {
            PopularProducts     = productsManager.GetPopularProducts();
            BestSellingProducts = productsManager.GetBestSellingProducts();
            AllProducts         = productsManager.GetAllProducts();

            ProductSelectedCommand = new RelayCommand(parameter => { navigationService.Push(PageEnum.ProductDetailPage, parameter); });
            OpenFlyoutCommand      = new RelayCommand(() => navigationService.OpenFlyout());
        }