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/ContentPages/AddRecipe.xaml.cs

26 lines
723 B

using Model;
using Model.Managers;
using System.Diagnostics;
using Microsoft.Maui.Media;
namespace Views
{
public partial class AddRecipe : ContentPage
{
public MasterManager Master => (Application.Current as App).Master;
public List<Unit> UnitList { get; set; } = new List<Unit> { 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();
}
}
}