예제 #1
0
        public Contener GetChild()
        {
            Contener CurrenChild = Childs.ElementAt(ChildIdicator);

            if (CurrenChild != null)
            {
                ChildIdicator++;
            }
            return(CurrenChild);
        }
예제 #2
0
        public void PreviousComposite()
        {
            compositeIndex--;
            if (compositeIndex > 0)
            {
                Collection temp    = new Collection("");
                Contener   current = Head.Childs.ElementAt(compositeIndex);

                if (!current.GetType().Equals(temp.GetType()))
                {
                    PreviousComposite();
                }
            }
        }
예제 #3
0
        public void NextComposite()
        {
            if (compositeIndex < size)
            {
                ContenerComposite temp    = new ContenerComposite("");
                Contener          current = Head.Childs.ElementAt(compositeIndex);

                if (!current.GetType().Equals(temp.GetType()))
                {
                    compositeIndex++;
                    NextComposite();
                }
            }
        }
예제 #4
0
 public void Delete(Contener Child)
 {
     Childs.Remove(Child);
 }
예제 #5
0
 public void Add(Contener Child)
 {
     Childs.Add(Child);
 }