Exemple #1
0
        public void EditBook()
        {
            var bookModel = booksTable.SelectedItem as BookModel;

            if (bookModel != null)
            {
                var bookCreatingWindow = new AddNewBookWindow(_unitOfWork, _booksDisplayViewModel, bookModel);
                bookCreatingWindow.ShowDialog();
            }
        }
Exemple #2
0
        private void addBookButton_Click(object sender, RoutedEventArgs e)
        {
            var bookCreatingWindow = new AddNewBookWindow(_unitOfWork, _booksDisplayViewModel);

            bookCreatingWindow.ShowDialog();
        }