Ejemplo n.º 1
0
            public void Reset()
            {
                EnumerationNode n = controlTree.Last();

                n.position = 0;
                controlTree.Clear();
                controlTree.Push(n);
            }
Ejemplo n.º 2
0
            public bool MoveNext()
            {
                EnumerationNode n = controlTree.Peek();

                n.position += 1;
                int i = n.position;

                Control.ControlCollection c = n.theControls;

                if (!(i < c.Count && i > 0))
                {
                    controlTree.Pop();
                }
                else if (c[i].HasChildren)
                {
                    controlTree.Push(new EnumerationNode(0, c[i].Controls));
                }

                return(controlTree.Count > 0);
            }