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