private SkillsTreeNode <Skill> CreateAndBind(SkillsTreeNode <Skill> parent, string name, bool isLocked = true) { var res = CreateNode(name, isLocked); BindOneByOne(parent, res); return(res); }
private void BindOneByOne(SkillsTreeNode <Skill> parent, SkillsTreeNode <Skill> child) { parent.Children.Add(child); child.Parents.Add(parent); }