private void Page_Loaded(object sender, RoutedEventArgs e)
        {
            ServiceRecipe = new ServiceRecipe();
            Recipes       = new ObservableCollection <Recipe>(ServiceRecipe.All(true));

            ListViewRecipes.ItemsSource = Recipes;
        }
Esempio n. 2
0
        private void Page_Loaded(object sender, RoutedEventArgs e)
        {
            ServiceRecipe serviceRecipe = new ServiceRecipe();

            serviceOrder = new ServiceOrder();

            recipesAvailable            = new ObservableCollection <Recipe>(serviceRecipe.All());
            ListViewRecipes.ItemsSource = recipesAvailable;

            order        = new Order();
            order.Client = AuthUser.Client;

            recipesInBucket = new ObservableCollection <Recipe>();
            ListViewRecipesInBucket.ItemsSource = recipesInBucket;
            order.Recipes = recipesInBucket.ToList();
        }
        private void Page_Loaded(object sender, RoutedEventArgs e)
        {
            ServiceRecipeCreator = new ServiceRecipeCreator();
            List <RecipeCreator> recipeCreators = ServiceRecipeCreator.AllWithRecipes();

            ListViewRecipeCreators.ItemsSource = recipeCreators;
            TextBlockCountRecipeCreators.Text  = (recipeCreators.Count).ToString();

            ServiceProduct = new ServiceProduct();
            ListViewProductsToRestock.ItemsSource = ServiceProduct.AllForDemo();

            ServiceClient = new ServiceClient();
            TextBlockCountClients.Text = ((ServiceClient.All()).Count).ToString();

            ServiceRecipe = new ServiceRecipe();
            TextBlockCountRecipes.Text = ((ServiceRecipe.All()).Count).ToString();
        }