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.
Ohara_MAUI/Sources/Ohara/ModalBestiaire.xaml.cs

26 lines
641 B

using Model.Classes;
using Model.Managers;
namespace Ohara;
public partial class ModalBestiaire : ContentPage
{
public Manager manager => (App.Current as App).manager;
public Bestiaire nouveauBest = new Bestiaire("Bestiaire", " ", " ", " ");
public ModalBestiaire()
{
InitializeComponent();
BindingContext = nouveauBest;
}
private async void ButtonConfirmer_Clicked(object sender, EventArgs e)
{
manager.AjouterBest(nouveauBest);
await Navigation.PopModalAsync();
}
private async void ButtonAnnuler_Clicked(object sender, EventArgs e)
{
await Navigation.PopModalAsync();
}
}