Beispiel #1
0
 public override bool IsA(string name)
 {
     if (point.IsA(name) == true || name == "CStickyObject")
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Beispiel #2
0
 public void processNode(TreeNode tree, CPoint point, int k)
 {
     if (tree == null || tree.Nodes[point.classname()] == null)
     {
         tree.Nodes.Add(point.classname(), point.classname());
     }
     if (point.IsA("CGroup") == true)
     {
         tree.Nodes[point.classname()].Nodes.Add(k.ToString(), "group");
         CGroup g = (CGroup)point;
         for (int i = 0; i < g.getCount(); i++)
         {
             processNode(tree.Nodes["CGroup"].Nodes[k.ToString()], g.getObj(i), i);
         }
     }
     else
     {
         tree.Nodes[point.classname()].Nodes.Add(k.ToString(), $"({point.getX()}, {point.getY()})");
     }
     if (point.IsObjectSelected() == true)
     {
         myTree.SelectedNode = tree.Nodes[point.classname()].LastNode;
     }
 }