public bool FuegAutorHinzu() { Console.WriteLine("Bitte Geben Sie den Autor Name ein: "); var autorName = Console.ReadLine(); IF.SpeichereAutor(autorName); return(false); }
private void btnAddAuthor_Click(object sender, RoutedEventArgs e) { string Name = txtAuthorName.Text; IF.SpeichereAutor(Name); FillAuthors(); if (lstAuthors.SelectedItem != null) { FillBooks(IF.GetBuecher(int.Parse(lstAuthors.SelectedValue.ToString()))); } else { FillBooks(IF.GetBuecher()); } EmptyFields(); }