private string GetTitle(AnalyticSection sectionType)
        {
            DescriptionAttribute descriptionAttribute;
            string description;

            if (typeof(AnalyticSection).GetMember(sectionType.ToString()).First().TryGetAttribute(out descriptionAttribute))
            {
                description = descriptionAttribute.Description.ToNonNullNorEmptyString(sectionType.ToString()).Split(":").First();
            }
            else
            {
                description = sectionType.ToString();
            }

            return(description);
        }
 /// <summary>
 /// Creates a new <see cref="AllowSearchAttribute"/>.
 /// </summary>
 /// <param name="Section"> The <see cref="AnalyticSection"/> this analytic is available in.</param>
 public AnalyticSectionAttribute(AnalyticSection Section)
 {
     this.Sections = new AnalyticSection[] { Section };
 }
 public SectionTypeDescriptionVM(AnalyticSection section)
 {
     Type        = section;
     Name        = GemstoneCommon.EnumDescriptionHelper.GetDisplayName(section);
     Description = GemstoneCommon.EnumDescriptionHelper.GetEnumDescription(section);
 }