Ejemplo n.º 1
0
        private void bnBuscar_Click(object sender, EventArgs e)
        {
            Ruta buscar = estacion.buscar(txtBuscar.Text);

            if (buscar != null)
            {
                txtMostrar.Text = buscar.ToString();
            }
            else
            {
                txtMostrar.Text = "Base no encontrada";
            }
        }
Ejemplo n.º 2
0
        private void btnEliminar_Click(object sender, EventArgs e)
        {
            Ruta eliminar = estacion.eliminar(txtEliminar.Text);

            if (eliminar != null)
            {
                txtMostrar.Text = eliminar.ToString();
            }
            else
            {
                txtMostrar.Text = "Base no encontrada";
            }
        }
Ejemplo n.º 3
0
        public string listar()
        {
            string res = "";
            Ruta   t   = inicio;

            if (inicio != null)
            {
                do
                {
                    res += t.ToString() + Environment.NewLine;
                    t    = t._siguiente;
                } while (t != inicio);
            }
            return(res);
        }