예제 #1
0
        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);
        }
예제 #2
0
 internal NodeNodeEnumerator(DiagramNode n, DiagramNode.Search s)
 {
     this.myNode   = n;
     this.mySearch = s;
     this.myArray  = null;
     this.myIndex  = -1;
     this.Reset();
 }
예제 #3
0
 internal NodePortEnumerator(DiagramNode n, DiagramNode.Search s)
 {
     this.myNode = n;
     this.mySearch = s;
     this.myArray = null;
     this.myIndex = -1;
     this.Reset();
 }
예제 #4
0
        public override DiagramShape CopyObject(CopyDictionary env)
        {
            DiagramNode node1 = (DiagramNode)base.CopyObject(env);

            if (node1 != null)
            {
                node1.myParts  = null;
                node1.myPartID = -1;
            }
            return(node1);
        }
예제 #5
0
 private NodeNodeEnumerator GetNodeEnumerator(DiagramNode.Search s)
 {
     return new NodeNodeEnumerator(this, s);
 }