예제 #1
0
        private async Task searchResultsListView_ItemSelected(object sender, SelectedItemChangedEventArgs e)
        {
            User user = e.SelectedItem as User;

            if (user == null)
            {
                return;
            }

            ProjectRepository projectRepository = new ProjectRepository();
            await projectRepository.AddProjectResource(viewModel.ProjectID, user.Id);

            Project p = await projectRepository.Find(viewModel.ProjectID);

            await Navigation.PushAsync(new ProjectDetailPage(new ProjectDetailViewModel(p)));

            // Manually deselect item
            SearchResultsListView.SelectedItem = null;
        }