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(); }