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_-_Developpement_du.../Sources/Vues/Inscription.xaml.cs

23 lines
506 B

using Model;
using Persistance;
namespace Vues;
public partial class Inscription : ContentPage
{
List<User> users = new List<User>();
UserManager userMngr = new UserManager(new LoaderXml());
public User user { get; set; } = new User();
public Inscription()
{
InitializeComponent();
BindingContext=user;
}
private async void Valid_Clicked(object sender, EventArgs e)
{
users.Add(user);
userMngr.saveUsers(users);
}
}