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.
26 lines
634 B
26 lines
634 B
using Model.Classes;
|
|
using Model.Managers;
|
|
|
|
namespace Ohara;
|
|
|
|
public partial class ModalFDD : ContentPage
|
|
{
|
|
public Manager manager => (App.Current as App).manager;
|
|
public FruitDuDemon nouveauFDD = new FruitDuDemon("Fruit","","",0,0,"","","");
|
|
public ModalFDD()
|
|
{
|
|
InitializeComponent();
|
|
BindingContext = nouveauFDD;
|
|
|
|
}
|
|
|
|
private async void ButtonConfirmer_Clicked(object sender, EventArgs e)
|
|
{
|
|
manager.AjouterFDD(nouveauFDD);
|
|
await Navigation.PopModalAsync();
|
|
}
|
|
private async void ButtonAnnuler_Clicked(object sender, EventArgs e)
|
|
{
|
|
await Navigation.PopModalAsync();
|
|
}
|
|
} |