Exemple #1
0
 public void AddParent()
 {
     ParentTreeNode partn = new ParentTreeNode(new ParentObject());
     partn.Text = "Parent " + parentCount;
     partn.ImageIndex = 2;
     avstn.Nodes.Add(partn);
     parentCount++;
 }
Exemple #2
0
 public void AddShapeLink(ShapeTreeNode stn, ParentTreeNode ptn)
 {
     _shapelink.Add(stn, ptn);
 }
Exemple #3
0
        public void AddShape(ShapeObject so, out ShapeTreeNode shptn, out ParentTreeNode partn)
        {
            TreeNode selected = treeProject.SelectedNode;
            if(selected.GetType() == typeof(ParentTreeNode))
            {
                partn = (ParentTreeNode)selected;

                shptn = new ShapeTreeNode(so);
                shptn.Text = "Shape";
                shptn.ImageIndex = 3;
                partn.Nodes.Add(shptn);
            }
            else
            {
                partn = null;
                shptn = null;
            }
        }