internal static DiagramText FindLabel(DiagramShape obj) { DiagramText text1 = obj as DiagramText; if (text1 != null) { return(text1); } GroupShape group1 = obj as GroupShape; if (group1 != null) { GroupEnumerator enumerator2 = group1.GetEnumerator(); GroupEnumerator enumerator1 = enumerator2.GetEnumerator(); while (enumerator1.MoveNext()) { DiagramText text2 = DiagramNode.FindLabel(enumerator1.Current); if (text2 != null) { return(text2); } } } return(null); }
internal NodeNodeEnumerator(DiagramNode n, DiagramNode.Search s) { this.myNode = n; this.mySearch = s; this.myArray = null; this.myIndex = -1; this.Reset(); }
internal NodePortEnumerator(DiagramNode n, DiagramNode.Search s) { this.myNode = n; this.mySearch = s; this.myArray = null; this.myIndex = -1; this.Reset(); }
public override DiagramShape CopyObject(CopyDictionary env) { DiagramNode node1 = (DiagramNode)base.CopyObject(env); if (node1 != null) { node1.myParts = null; node1.myPartID = -1; } return(node1); }
private NodeNodeEnumerator GetNodeEnumerator(DiagramNode.Search s) { return new NodeNodeEnumerator(this, s); }