public AppNode(int name, AppNodeType type, AppNode parent, Application app) { Name = name; AppNodeType = type; Application = app; Children = new List <AppNode>(); Parent = parent; if (parent != null) { Parent.Children.Add(this); Level = Parent.Level + 1; } if (app != null) { Disabled = app.Disabled; var list = app.ScenarioList; _scenarioList = list.Count > 0 ? list : null; } }
public AppNode(int name, AppNodeType type, AppNode parent) : this(name, type, parent, null) { }