Esempio n. 1
0
        private void LoadPeople()
        {
            var people = GetPeopleQuery.List();

            VoorWieDropdown.ItemsSource       = people;
            VoorWieDropdown.DisplayMemberPath = nameof(DocumentTypeDto.Name);
            VoorWieDropdown.SelectedValuePath = nameof(DocumentTypeDto.Id);
        }
Esempio n. 2
0
        public UserAdminViewModel()//:base(GetPeopleQuery.List().Select(x => new AdminItem { Id = x.Id, Name = x.Name }).ToList())
        {
            var people = GetPeopleQuery.List()
                         .Select(x => new AdminItem {
                Id = x.Id, Name = x.Name
            }).ToList();

            Items = new ObservableCollection <AdminItem>(people);
            //OriginalItems = people;
        }