Пример #1
0
        private SkillsTreeNode <Skill> CreateAndBind(SkillsTreeNode <Skill> parent, string name, bool isLocked = true)
        {
            var res = CreateNode(name, isLocked);

            BindOneByOne(parent, res);
            return(res);
        }
Пример #2
0
 private void BindOneByOne(SkillsTreeNode <Skill> parent, SkillsTreeNode <Skill> child)
 {
     parent.Children.Add(child);
     child.Parents.Add(parent);
 }