private void AddAuthor_Click(object sender, RoutedEventArgs e) { var addAuthorWindow = new AddAuthorWindow(); addAuthorWindow.AuthorAdded += (_, e) => Authors.Add(e.Entity); addAuthorWindow.Show(); }
public static void OpenAuthorWindow() { AddAuthorWindow win = new AddAuthorWindow(); win.Show(); }