/// <summary> /// Initializes a new instance of the <see cref="CategoryInfo"/> class. /// </summary> /// <param name="type">The category type.</param> /// <param name="tasks">The tasks.</param> public CategoryInfo(CategoryType type, IEnumerable <TaskMap> tasks) { CategoryType = type; Description = type.GetDescription(); TaskTypes = tasks.Select( arg => new TaskInfo(arg)) .ToList(); }
public SortedCategory(CategoryType category) : base(category.GetDescription().PadLeft(category.GetDescription().Length + Enum.GetNames(typeof(CategoryType)).Length - (Int32)category, SortedCategory.NonPrintableChar)) { }