Пример #1
0
        public void Add(TreeNode treeNode, TreeNodeViewModel parent)
        {
            var treeNodeViewModel = new TreeNodeViewModel(treeNode, parent);

            this.treeNodes.Add(treeNodeViewModel);
            if (parent != null)
            {
                parent.Children.Add(treeNodeViewModel);
            }
            BehaviorTreeLayout.ExcuteLayout(this.Root);
        }
Пример #2
0
 public void Remove(TreeNodeViewModel treeNodeViewModel)
 {
     this.RecursionRemove(treeNodeViewModel);
     BehaviorTreeLayout.ExcuteLayout(this.Root);
 }