/// <summary> Constructeur de la page de listing de personne </summary> public PeopleListingPage() { InitializeComponent(); peopleViewModel = new PeopleViewModel(); ListViewOfPeople.ItemsSource = peopleViewModel.GetAllPeopleInDB(); peopleViewModel.AddingPersonEvent += AddingPersonEvenHandler; }
/// <summary> /// Rafraichir la liste de personne pour correspondre à la DB /// </summary> private void ReloadPeopleList() { ListViewOfPeople.ItemsSource = peopleViewModel.GetAllPeopleInDB(); ListViewOfPeople.Items.Refresh(); }