public override ExtensionComponentDescription GetDescription()
        {
            var description = new ExtensionComponentDescription(
                "Collection: ",
                new Hilite(this.CollectionName ?? (this.CollectionId.ToString()))
            );

            if (string.IsNullOrWhiteSpace(this.CustomWiql))
            {
                if (!string.IsNullOrWhiteSpace(this.ProjectName))
                {
                    description.AppendContent(
                        ", Project: ",
                        new Hilite(this.ProjectName)
                    );

                    if (!string.IsNullOrWhiteSpace(this.AreaPath))
                    {
                        description.AppendContent(
                            ", Area: ",
                            new Hilite(this.AreaPath)
                        );
                    }
                }
            }
            else
            {
                description.AppendContent(", custom query");
            }

            return description;
        }
Ejemplo n.º 2
0
        public override ExtensionComponentDescription GetDescription()
        {
            var description = new ExtensionComponentDescription(
                "Collection: ",
                new Hilite(this.CollectionName ?? (this.CollectionId.ToString()))
                );

            if (string.IsNullOrWhiteSpace(this.CustomWiql))
            {
                if (!string.IsNullOrWhiteSpace(this.ProjectName))
                {
                    description.AppendContent(
                        ", Project: ",
                        new Hilite(this.ProjectName)
                        );

                    if (!string.IsNullOrWhiteSpace(this.AreaPath))
                    {
                        description.AppendContent(
                            ", Area: ",
                            new Hilite(this.AreaPath)
                            );
                    }
                }
            }
            else
            {
                description.AppendContent(", custom query");
            }

            return(description);
        }
Ejemplo n.º 3
0
        public override ExtensionComponentDescription GetDescription()
        {
            var desc = new ExtensionComponentDescription("Import ");

            if (this.BuildNumberLocked)
            {
                desc.AppendContent(this.IncludeUnsuccessful ? "last completed build" : "last succeeded build");
            }
            else
            {
                desc.AppendContent("a specific build number");
            }
            desc.AppendContent(" using build definition ", new Hilite(this.BuildDefinition));
            desc.AppendContent(" from the ", new Hilite(this.TeamProject), " team project");

            return(desc);
        }