public async Task LoadAsync() { var lookup = await _clientLookupService.GetClientLookupAsync(); Clients.Clear(); foreach (var item in lookup) { Clients.Add(new NavigationItemViewModel(item.Id, item.DisplayMember, _eventAggregator, nameof(ClientDetailViewModel))); } lookup = await _workoutLookupService.GetWorkoutLookupAsync(); Workouts.Clear(); foreach (var item in lookup) { Workouts.Add(new NavigationItemViewModel(item.Id, item.DisplayMember, _eventAggregator, nameof(WorkoutDetailViewModel))); } lookup = await _exerciseLookupDataService.GetExerciseLookupAsync(); Exercises.Clear(); foreach (var item in lookup) { Exercises.Add(new NavigationItemViewModel(item.Id, item.DisplayMember, _eventAggregator, nameof(ExerciseDetailViewModel))); } }
public async Task LoadAsync() { var lookup = await _clientLookupDataService.GetClientLookupAsync(); Clients.Clear(); foreach (var item in lookup) { Clients.Add(new NavigationItemViewModel(item.Id, item.DisplayMember)); } }
public async Task LoadAsync() { var lookup = await _clientLookupDataService.GetClientLookupAsync(); Clients.Clear(); foreach (var item in lookup) { Clients.Add(new NavigationItemViewModel(item.Id, item.DisplayMember, _eventAggregator)); } clientsCollection.Source = Clients; clientsCollection.Filter += usersCollection_Filter; }
public async Task LoadAsync() { var lookup = await _clientLookupDataService.GetClientLookupAsync(); Clients.Clear(); foreach (var item in lookup) { Clients.Add(new NavigationItemViewModel(item.Id, item.DisplayMember, nameof(ClientDetailViewModel), _eventAggregator)); } lookup = await _meetingLookupDataService.GetMeetingLookupAsync(); Meetings.Clear(); foreach (var item in lookup) { Meetings.Add(new NavigationItemViewModel(item.Id, item.DisplayMember, nameof(MeetingDetailViewModel), _eventAggregator)); } }