|
|
|
@ -1,20 +1,20 @@
|
|
|
|
|
using DataPersistence;
|
|
|
|
|
using Model;
|
|
|
|
|
|
|
|
|
|
namespace Views
|
|
|
|
|
{
|
|
|
|
|
public partial class Home : ContentPage
|
|
|
|
|
{
|
|
|
|
|
public DataManager DataMgr { get; private set; }
|
|
|
|
|
public RecipeCollection AllRecipes { get; private set; }
|
|
|
|
|
|
|
|
|
|
public Home()
|
|
|
|
|
{
|
|
|
|
|
DataMgr = new DataManager(new Stubs());
|
|
|
|
|
AllRecipes = new RecipeCollection("Toutes les recettes", DataMgr.Data[nameof(Recipe)].Cast<Recipe>().ToArray());
|
|
|
|
|
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
BindingContext = this;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
namespace Views
|
|
|
|
|
{
|
|
|
|
|
public partial class Home : ContentPage
|
|
|
|
|
{
|
|
|
|
|
public DataManager DataMgr { get; private set; }
|
|
|
|
|
public RecipeCollection AllRecipes { get; private set; }
|
|
|
|
|
|
|
|
|
|
public Home()
|
|
|
|
|
{
|
|
|
|
|
DataMgr = new DataManager(new Stubs());
|
|
|
|
|
AllRecipes = new RecipeCollection("Toutes les recettes", DataMgr.Data[nameof(Recipe)].Cast<Recipe>().ToArray());
|
|
|
|
|
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
BindingContext = this;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|