Exemplo n.º 1
0
 private void EditBookButton_Click(object sender, RoutedEventArgs e)
 {
     if (BooksDataGrid.SelectedItems.Count > 0)
     {
         Book       book       = (Book)BooksDataGrid.SelectedItems[0];
         BookWindow bookWindow = new BookWindow();
         bookWindow.SetData(book);
         bookWindow.Show();
     }
 }
Exemplo n.º 2
0
        private void AddBookButton_Click(object sender, RoutedEventArgs e)
        {
            BookWindow bookWindow = new BookWindow();

            bookWindow.Show();
        }