Exemple #1
0
 private void Refresh()
 {
     Users.Clear();
     foreach (Logic.DTOs.ReaderDTO r in rs.GetReaderDTOs())
     {
         Users.Add(new ReaderViewModel(r.ID, r.name, r.surname));
     }
     OnPropertyChanged(nameof(Users));
 }
Exemple #2
0
 private void RefreshUsers()
 {
     if (selectedEvent != null)
     {
         Rdrs.Clear();
         foreach (Logic.DTOs.ReaderDTO r in rs.GetReaderDTOs())
         {
             Rdrs.Add(new ReaderViewModel(r.ID, r.name, r.surname));
         }
         OnPropertyChanged(nameof(Rdrs));
     }
 }