public static BuildDocumentation ( DocumentationType documentation ) : System.Xml.Linq.XElement | ||
documentation | DocumentationType | |
return | System.Xml.Linq.XElement |
public static XElement BuildDocumentation(DocumentationType documentation)
{
PageDocument.StatusColor color;
switch (documentation)
{
case DocumentationType.Full:
color = PageDocument.StatusColor.Green;
break;
case DocumentationType.Partial:
color = PageDocument.StatusColor.Yellow;
break;
default:
color = PageDocument.StatusColor.Grey;
break;
}
return PageDocument.BuildStatus(documentation.ToString(), color, true);
}