Esempio n. 1
0
        public ImageDataNode Find(int name)
        {
            // search the active list
            DLink         pNode = this.pActive;
            ImageDataNode pData = null;

            while (pNode != null)
            {
                pData = (ImageDataNode)pNode;
                if (pData.getNum() == name)
                {
                    // found it
                    break;
                }
                pNode = (DLink)pNode.pNext;
            }
            return(pData);
        }
Esempio n. 2
0
        public void createActive(Image image, int val)
        {
            DLink pLink = new ImageDataNode(image, name, val);

            AddToActive(pLink);

            /*if (this.pActive == null)
             * {
             *  this.pActive = pLink;
             * }
             * else
             * {
             *  DLink pHeadTemp = this.pActive;
             *  while (pHeadTemp.pNext != null)
             *  {
             *      pHeadTemp = pHeadTemp.pNext;
             *  }
             *  pHeadTemp.pNext = pLink;
             * }*/
            /*DLink pLink;
             *
             * DLink pActiveTemp = this.pActive;
             * // Are there any nodes on the Reserve list?
             *
             * pLink = new ImageDataNode(image, name, val);
             *
             * this.active++;
             *
             *
             * // Zero DLink
             * pLink.Clear();
             *
             * // Fill data
             * ImageDataNode pNode = (ImageDataNode)pLink;
             *
             * pNode.setImage(image);
             *
             * DLink.AddToFront(ref pActiveTemp, pNode);
             * pActive = pNode;*/
        }