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.
SAE-2.01/MCTG/Views/Home.xaml.cs

21 lines
549 B

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