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"; } }
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"; } }
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); }