using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
namespace Model
{
///
/// The Main manager of the model.
///
public class MasterManager
{
#region Attributes & Properties
///
/// Manage the data of the application.
///
public IDataManager Data { get; private set; }
///
/// Manage the recipes of the application.
///
public IRecipeManager Recipe { get; private set; }
///
/// Manage the users of the application.
///
public IUserManager User { get; private set; }
#endregion
#region Constructors
///
/// Constructor of the MasterManager.
///
/// The data manager.
/// The recipes manager.
/// The users manager.
public MasterManager(IDataManager dataManager,
IRecipeManager recipeManager,
IUserManager userManager)
{
Data = dataManager;
Recipe = recipeManager;
User = userManager;
}
#endregion
#region Methods
///
/// Setup all the necessary parameters before start.
///
public void Setup()
{
Data.LoadData();
}
#endregion
}
}