using CommunityToolkit.Maui.Behaviors; using DataPersistence; using Model; using Model.Managers; using System.Diagnostics; using Microsoft.Maui.Media; namespace Views { public partial class AddRecipe : ContentPage { public MasterManager MasterMgr => (App.Current as App).MasterMgr; public List UnitList { get; set; } = new List { Unit.unit, Unit.kG, Unit.mG, Unit.G, Unit.L, Unit.cL, Unit.mL }; public bool IsCaptureSupported => throw new NotImplementedException(); public AddRecipe() { InitializeComponent(); BindingContext = this; } private void PickPhoto (object sender, EventArgs e) { MediaPicker.PickPhotoAsync(); } } }