예제 #1
0
 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;
     }
 }
예제 #2
0
 public AppNode(int name, AppNodeType type, AppNode parent) : this(name, type, parent, null)
 {
 }