private void DeleteBuildDefinition(BuildDefinitionModel buildDefinitionModel)
 {
     if (teamPilgrimServiceModelProvider.TryDeleteBuildDefinition(buildDefinitionModel.Definition))
     {
         BuildDefinitions.Remove(buildDefinitionModel);
     }
 }
        private void CloneBuildDefinition(BuildDefinitionModel buildDefinitionModel)
        {
            IBuildDefinition buildDefinition;

            if (teamPilgrimServiceModelProvider.TryCloneQueryDefinition(out buildDefinition, _collection, _project, buildDefinitionModel.Definition))
            {
                BuildDefinitions.Add(new BuildDefinitionModel(this, buildDefinition));
            }
        }
        private void QueueBuild(BuildDefinitionModel buildDefinitionModel)
        {
            var definitionModel = buildDefinitionModel ?? BuildDefinitions.FirstOrDefault();

            //TODO: SG 11/3/2012 Fix this, I know this cannot be true
            Debug.Assert(definitionModel != null, "definitionModel != null");

            teamPilgrimVsService.QueueBuild(_project.Name, definitionModel.Definition.Uri);
        }
        private void ViewBuilds(BuildDefinitionModel buildDefinitionModel)
        {
            string buildDefinitionName = null;

            if (buildDefinitionModel != null)
            {
                buildDefinitionName = buildDefinitionModel.Definition.Name;
            }

            teamPilgrimVsService.ViewBuilds(_project.Name, buildDefinitionName, String.Empty, DateFilter.Today);
        }
 private bool CanOpenProcessFileLocation(BuildDefinitionModel buildDefinitionModel)
 {
     return true;
 }
 private bool CanQueueBuild(BuildDefinitionModel buildDefinitionWrapper)
 {
     return true;
 }
 private bool CanManageBuildDefinitionSecurity(BuildDefinitionModel buildDefinitionModel)
 {
     return true;
 }
 private bool CanOpenBuildDefinition(BuildDefinitionModel buildDefinitionModel)
 {
     return true;
 }
 private bool CanManageBuildDefinitionSecurity(BuildDefinitionModel buildDefinitionModel)
 {
     return(true);
 }
 private bool CanDeleteBuildDefinition(BuildDefinitionModel buildDefinitionModel)
 {
     return true;
 }
 private void OpenBuildDefinition(BuildDefinitionModel buildDefinitionModel)
 {
     teamPilgrimVsService.OpenBuildDefinition(buildDefinitionModel.Definition.Uri);
 }
 private bool CanOpenBuildDefinition(BuildDefinitionModel buildDefinitionModel)
 {
     return(true);
 }
 private bool CanViewBuilds(BuildDefinitionModel buildDefinitionWrapper)
 {
     return(true);
 }
 private void DeleteBuildDefinition(BuildDefinitionModel buildDefinitionModel)
 {
     if (teamPilgrimServiceModelProvider.TryDeleteBuildDefinition(buildDefinitionModel.Definition))
     {
         BuildDefinitions.Remove(buildDefinitionModel);
     }
 }
 private void OpenProcessFileLocation(BuildDefinitionModel buildDefinitionModel)
 {
     teamPilgrimVsService.OpenProcessFileLocation(buildDefinitionModel.Definition.Uri);
 }
 private bool CanOpenProcessFileLocation(BuildDefinitionModel buildDefinitionModel)
 {
     return(true);
 }
 private void OpenBuildDefinition(BuildDefinitionModel buildDefinitionModel)
 {
     teamPilgrimVsService.OpenBuildDefinition(buildDefinitionModel.Definition.Uri);
 }
 private bool CanViewBuilds(BuildDefinitionModel buildDefinitionWrapper)
 {
     return true;
 }
        private void QueueBuild(BuildDefinitionModel buildDefinitionModel)
        {
            var definitionModel = buildDefinitionModel ?? BuildDefinitions.FirstOrDefault();

            //TODO: SG 11/3/2012 Fix this, I know this cannot be true
            Debug.Assert(definitionModel != null, "definitionModel != null");

            teamPilgrimVsService.QueueBuild(_project.Name, definitionModel.Definition.Uri);
        }
 private void CloneBuildDefinition(BuildDefinitionModel buildDefinitionModel)
 {
     IBuildDefinition buildDefinition;
     if (teamPilgrimServiceModelProvider.TryCloneQueryDefinition(out buildDefinition, _collection, _project, buildDefinitionModel.Definition))
     {
         BuildDefinitions.Add(new BuildDefinitionModel(this, buildDefinition));
     }
 }
 private void ManageBuildDefinitionSecurity(BuildDefinitionModel buildDefinitionModel)
 {
     teamPilgrimVsService.OpenBuildDefinitionSecurityDialog(_project.Name, _project.Uri.ToString(), buildDefinitionModel.Definition.Name, buildDefinitionModel.Definition.Uri.ToString());
 }
 private void ManageBuildDefinitionSecurity(BuildDefinitionModel buildDefinitionModel)
 {
     teamPilgrimVsService.OpenBuildDefinitionSecurityDialog(_project.Name, _project.Uri.ToString(), buildDefinitionModel.Definition.Name, buildDefinitionModel.Definition.Uri.ToString());
 }
 private bool CanQueueBuild(BuildDefinitionModel buildDefinitionWrapper)
 {
     return(true);
 }
 private void OpenProcessFileLocation(BuildDefinitionModel buildDefinitionModel)
 {
     teamPilgrimVsService.OpenProcessFileLocation(buildDefinitionModel.Definition.Uri);
 }
 private bool CanCloneBuildDefinition(BuildDefinitionModel buildDefinitionModel)
 {
     return true;
 }
        private void ViewBuilds(BuildDefinitionModel buildDefinitionModel)
        {
            string buildDefinitionName = null;
            if (buildDefinitionModel != null)
            {
                buildDefinitionName = buildDefinitionModel.Definition.Name;
            }

            teamPilgrimVsService.ViewBuilds(_project.Name, buildDefinitionName, String.Empty, DateFilter.Today);
        }
 private bool CanDeleteBuildDefinition(BuildDefinitionModel buildDefinitionModel)
 {
     return(true);
 }