//using Android.Media; using DataPersistence; using Model; using Model.Managers; namespace Views { public partial class Home : ContentPage { public MasterManager MasterMgr => (App.Current as App).MasterMgr; public User user => (App.Current as App).CurrentUser; public Recipe Recipe => (App.Current as App).CurrentRecipe; public RecipeCollection AllRecipes => (App.Current as App).AllRecipes; public Home() { //DataMgr = new DataManager(new Stubs()); //AllRecipes = new RecipeCollection("Toutes les recettes", DataMgr.Data[nameof(Recipe)].Cast().ToArray()); InitializeComponent(); BindingContext = this; } public void OnImageClicked(object sender, EventArgs e) { (App.Current as App).CurrentRecipe = (Recipe)(sender as ImageButton).BindingContext; Navigation.PushModalAsync(new ViewRecette()); } } }