using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Model { /// /// Manager of the model. Here is stoked all the recipes, the users, etc... /// public class DataManager { /// /// A collection of all the recipe loaded in the app. /// public RecipeCollection AllRecipes { get; protected set; } /// /// The constructor of the manager. /// public DataManager() { AllRecipes = new RecipeCollection(description: "All Recipes"); } /// /// The constructor of the manager. /// /// A list of loaded recipes public DataManager(RecipeCollection allRecipes) { AllRecipes = new RecipeCollection( description: "All Recipes", recipes: allRecipes.ToArray()); } } }