Files
Crapfixer/MSCFixer/Features/FeatureNode.cs
T

28 lines
671 B
C#
Raw Normal View History

2025-04-30 16:53:03 +02:00
using System.Collections.Generic;
using Crapfixer;
public class FeatureNode
{
public string Name { get; set; }
public bool IsCategory => Feature == null;
public FeatureBase Feature { get; }
public List<FeatureNode> Children { get; set; } = new List<FeatureNode>();
// Property to control default checked state
public bool DefaultChecked { get; set; } = true;
2025-04-30 16:53:03 +02:00
// Constructor for categories
public FeatureNode(string name)
{
Name = name;
}
// Constructor for actual features
public FeatureNode(FeatureBase feature)
{
Feature = feature;
Name = feature.ID(); // Use the ID as the name
}
}