private void button_recherche_plus_court_Click(object sender, EventArgs e) { string depart = textBox_depart.Text.ToUpper(); string arrivee = textBox_arrivee.Text.ToUpper(); Graph g = new Graph(); Node noeud = new Node(depart, arrivee); List<GenericNode> L_resultat = g.RechercheSolutionAEtoile(noeud); listbox_affichage.Items.Clear(); foreach (GenericNode N in L_resultat) { listbox_affichage.Items.Add(N); } }
private void button_recherche_chemin_Click(object sender, EventArgs e) { List<GenericNode> solution; string saisie; saisie = textBox_chemin.Text; Graph g = new Graph(); solution = g.cheminAvecEtapes(saisie); listbox_affichage.Items.Clear(); foreach (GenericNode N in solution) { listbox_affichage.Items.Add(N); } }