Exemplo n.º 1
0
        private async Task GetAndSetProjects()
        {
            var projects = await _vsService.GetProjects();

            if (projects != null && projects.Any())
            {
                Projects        = new ObservableCollection <Project>(projects);
                SelectedProject = Projects.First();
            }
            else
            {
                Projects        = null;
                SelectedProject = null;
            }
        }