private void lstAuthors_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (lstAuthors.SelectedItem != null) { FillBooks(IF.GetBuecher(((Autor)lstAuthors.SelectedItem).Autoren_id)); txtAuthorName.Text = ((Autor)lstAuthors.SelectedItem).Name; txtAuthorID.Text = ((Autor)lstAuthors.SelectedItem).Autoren_id.ToString(); } }
public bool ZeigeBuecher() { Console.WriteLine(); var buecherIndex = IF.GetBuecher(0); if (!buecherIndex.Any()) { Console.WriteLine("Die Bücherliste ist leer"); } foreach (var buch in buecherIndex) { Console.WriteLine(buch.Titel + " (ISBN: " + buch.ISBN + ")"); } Console.WriteLine(); return(false); }