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)); }
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)); } }