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

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