using System.Collections; using System.Linq; using Core.Common.Controls; namespace Ringtoets.Integration.Forms.PresentationObjects { /// /// Object that allows for grouping child nodes of instances. /// public class CategoryTreeFolder { /// /// Initializes a new instance of the class. /// /// The name of the category folder. /// The contents of the folder. /// Optional: The category descriptor of the folder. Default: . public CategoryTreeFolder(string name, IEnumerable contents, TreeFolderCategory category = TreeFolderCategory.General) { Name = name; Contents = contents.OfType().ToArray(); Category = category; } /// /// Gets the name of the folder. /// public string Name { get; private set; } /// /// Gets the contents of the folder. /// public IEnumerable Contents { get; private set; } /// /// Gets the category of the folder. /// public TreeFolderCategory Category { get; private set; } } }