using Model; using System.Diagnostics; using Microsoft.Maui.Media; namespace Views { public partial class AddRecipe : ContentPage { private List ingredientList; private List preparationStepList; public MasterManager Master => (Application.Current as App).Master; public List UnitList { get; set; } = new List { Unit.unit, Unit.kG, Unit.mG, Unit.G, Unit.L, Unit.cL, Unit.mL }; public List IngredientList { get => ingredientList; set => ingredientList = value; } public List PreparationStepList { get => preparationStepList; set => preparationStepList = value; } public AddRecipe(List preparationStepList) { PreparationStepList = preparationStepList; } public AddRecipe(List ingredientList) { IngredientList = ingredientList; } public bool IsCaptureSupported => throw new NotImplementedException(); public AddRecipe() { InitializeComponent(); BindingContext = this; } private void PickPhoto(object sender, EventArgs e) { MediaPicker.PickPhotoAsync(); } private void AddRecipeValidation(object sender, EventArgs e) { if (IsCaptureSupported) { } } private void AddStepRecipe(object sender, EventArgs e) { } private void RemoveStepRecipe(object sender, EventArgs e) { } } }