Example #1
0
        public void add(CObject o)
        {
            if (count != 0)
            {
                CContainerItem c = new CContainerItem(o);
                c.prev = last;
                c.next = first;
                first.prev = c;
                last.next = c;

                last=c;
                current = last;
                count = count + 1;

            }
            else
            {
                first = new CContainerItem(o);
                last = first;
                first.next = last;
                first.prev = last;

                last.next = first;
                last.prev = first;
                current = last;
                count = count + 1;
            }
        }
Example #2
0
 public CContainerItem(CObject c)
 {
     prev = null;
     next = null;
     obj=c;
 }