Example #1
0
        public void sposta(Point x, Color cFront, Color cNorm)
        {
            front.setColor(cNorm);
            rear.setPoint(x);
            rear.setColor(cFront);

            rear  = rear.getPrep();
            front = front.getPrep();
        }
Example #2
0
        public bool isLooping(System.Windows.Forms.PictureBox x)
        {
            nodo pa = front.getNxtp();

            while (pa != front)
            {
                if (pa.getInfo().Location == x.Location)
                {
                    return(true);
                }

                pa = pa.getNxtp();
            }
            return(false);
        }
Example #3
0
        public void push(System.Windows.Forms.PictureBox val)
        {
            nodo nuovo = new nodo(ref val, null, null);

            if (mpty())
            {
                front = rear = nuovo;
            }
            else
            {
                rear.setNxtp(nuovo);
                nuovo.setPrep(rear);
                rear = nuovo;
            }
            rear.setNxtp(front);
            front.setPrep(rear);
        }
Example #4
0
 public coda()
 {
     front = null;
     rear  = null;
 }
Example #5
0
 public void setPrep(nodo prep)
 {
     this.prep = prep;
 }
Example #6
0
 public void setNxtp(nodo nxtp)
 {
     this.nxtp = nxtp;
 }
Example #7
0
 public nodo(ref System.Windows.Forms.PictureBox info, nodo nxtp, nodo prep)
 {
     this.info = info;
     this.nxtp = nxtp;
     this.prep = prep;
 }
Example #8
0
 public nodo()
 {
     nxtp = prep = null;
 }