Ejemplo n.º 1
0
        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)));
            }
        }
Ejemplo n.º 2
0
        public async Task LoadAsync()
        {
            var lookup = await _clientLookupDataService.GetClientLookupAsync();

            Clients.Clear();
            foreach (var item in lookup)
            {
                Clients.Add(new NavigationItemViewModel(item.Id, item.DisplayMember));
            }
        }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 4
0
        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));
            }
        }