You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.0 KiB
39 lines
1.0 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Model
|
|
{
|
|
/// <summary>
|
|
/// Manager of the model. Here is stoked all the recipes, the users, etc...
|
|
/// </summary>
|
|
public class Manager
|
|
{
|
|
/// <summary>
|
|
/// A collection of all the recipe loaded in the app.
|
|
/// </summary>
|
|
public RecipeCollection AllRecipes { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// The constructor of the manager.
|
|
/// </summary>
|
|
public Manager()
|
|
{
|
|
AllRecipes = new RecipeCollection(description: "All Recipes");
|
|
}
|
|
|
|
/// <summary>
|
|
/// The constructor of the manager.
|
|
/// </summary>
|
|
/// <param name="allRecipes">A list of loaded recipes</param>
|
|
public Manager(RecipeCollection allRecipes)
|
|
{
|
|
AllRecipes = new RecipeCollection(
|
|
description: "All Recipes",
|
|
recipes: allRecipes.ToArray());
|
|
}
|
|
}
|
|
}
|