private void AddBook_Click(object sender, RoutedEventArgs e)
        {
            NewBook newbook = new NewBook(ref viewModel);

            newbook.ShowDialog();
            settingsButton.ContextMenu.IsEnabled = false;
        }
        private void EditButton_Click(object sender, RoutedEventArgs e)
        {
            viewModel.NewBook = new BookViewModel(new BusinessLogic.Book(viewModel.SelectedBook.SBook.GetModel()));
            viewModel.edit    = true;
            NewBook newBook = new NewBook(ref viewModel);

            newBook.ShowDialog();
        }