private void CleanLibrary(object sender, RoutedEventArgs e) { List <Book> delete = new List <Book>(); foreach (var book in booksForDeleting) { delete.Add(book); ResourcesProvider.Current.ListBooks.Remove(book); } ResourcesProvider.Current.deleteBook = delete; Serialization.SerializationInformationAboutBook(ResourcesProvider.Current.ListBooks, fullPath); Serialization.SerializationBookDelete(delete, fullPath); LibraryRefreshing.Refresh(); }
private void RefreshPages() //динамическое отображение { LibraryRefreshing.Refresh(); }