Exemple #1
0
        private CameraTreeNode NodeAdd(ItemClass c, CameraTreeNode p)
        {
            if (c is CameraClass && this.AtTheEdge())
            {
                return(null);
            }
            CameraTreeNode n;

            n = new CameraTreeNode(c);
            if (p == null)
            {
                this.treeViewCamera.Nodes.Add(n);
                RootClass.Instance.Add(c);
            }
            else
            {
                GroupClass g = p.Item as GroupClass;
                g.Add(c);
                p.Nodes.Add(n);
            }

            this.treeViewCamera.SelectedNode = n;
            return(n);
        }