示例#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();
        }
示例#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);
        }
示例#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);
        }
示例#4
0
 public coda()
 {
     front = null;
     rear  = null;
 }
示例#5
0
 public void setPrep(nodo prep)
 {
     this.prep = prep;
 }
示例#6
0
 public void setNxtp(nodo nxtp)
 {
     this.nxtp = nxtp;
 }
示例#7
0
 public nodo(ref System.Windows.Forms.PictureBox info, nodo nxtp, nodo prep)
 {
     this.info = info;
     this.nxtp = nxtp;
     this.prep = prep;
 }
示例#8
0
 public nodo()
 {
     nxtp = prep = null;
 }