private void ActivateStudioProject(CustomViewProject customViewProject) { _projectsController.BeginInvoke(new Action(delegate { var studioProject = _projectsController.GetProjects().FirstOrDefault(a => a.GetProjectInfo().Id.ToString() == customViewProject.Id); var selectedStudioProject = _projectsController.CurrentProject?.GetProjectInfo(); if (studioProject != null && selectedStudioProject?.Id.ToString() != customViewProject.Id) { _projectsController.ActivateProject(studioProject); _projectsController.SelectedProjects = new[] { studioProject }; } })); }