private void AddAuthor_Click(object sender, RoutedEventArgs e)
        {
            var addAuthorWindow = new AddAuthorWindow();

            addAuthorWindow.AuthorAdded += (_, e) => Authors.Add(e.Entity);
            addAuthorWindow.Show();
        }
Exemple #2
0
 public static void OpenAuthorWindow()
 {
     AddAuthorWindow win = new AddAuthorWindow();
     win.Show();
 }