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; } }