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