Example #1
0
 void Encolar(TAlumno alumno, TCola cola, ListBox lstBoxPila)
 {
     if (!cola.Llena())
     {
         cola.Enqueue(alumno);
         MostrarCola(cola, lstBoxPila);
     }
 }
Example #2
0
        void MostrarCola(TCola cola, ListBox lstBox)
        {
            TAlumno[] elementos = new TAlumno[cola.Longitud()];
            elementos = (TAlumno[])cola.Elementos();

            lstBox.Items.Clear();
            for (int i = cola.Primero_(); i <= cola.Ultimo_(); i++)
            {
                lstBox.Items.Add(elementos[i]);
            }
        }