Inheritance: BaseServiceModel
コード例 #1
0
        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());
        }
コード例 #2
0
        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());
        }
コード例 #3
0
 private bool CanSetActiveProject(ProjectServiceModel activeProjectServiceModel)
 {
     return !activeProjectServiceModel.IsActive;
 }
コード例 #4
0
 private bool CanSetActiveProject(ProjectServiceModel activeProjectServiceModel)
 {
     return(!activeProjectServiceModel.IsActive);
 }