private void SetActiveProject(ProjectServiceModel activeProjectServiceModel) { if (activeProjectServiceModel.IsActive) { return; } foreach (var projectServiceModel in ProjectModels.Except(new[] { activeProjectServiceModel })) { projectServiceModel.IsActive = false; } activeProjectServiceModel.IsActive = true; teamPilgrimVsService.TeamFoundationHost.SetContext(TfsTeamProjectCollection, activeProjectServiceModel.Project.Uri.ToString()); }
private void SetActiveProject(ProjectServiceModel activeProjectServiceModel) { if (activeProjectServiceModel.IsActive) return; foreach (var projectServiceModel in ProjectModels.Except(new[] { activeProjectServiceModel })) { projectServiceModel.IsActive = false; } activeProjectServiceModel.IsActive = true; teamPilgrimVsService.TeamFoundationHost.SetContext(TfsTeamProjectCollection, activeProjectServiceModel.Project.Uri.ToString()); }
private bool CanSetActiveProject(ProjectServiceModel activeProjectServiceModel) { return !activeProjectServiceModel.IsActive; }
private bool CanSetActiveProject(ProjectServiceModel activeProjectServiceModel) { return(!activeProjectServiceModel.IsActive); }