C# Class Bloom.Collection.BookCollection

Afficher le fichier Open project: BloomBooks/BloomDesktop Class Usage Examples

Méthodes publiques

Свойство Type Description
CollectionChanged EventHandler

Méthodes publiques

Méthode Description
AddBookInfo ( BookInfo bookInfo ) : void
BookCollection ( ) : System
BookCollection ( string path, CollectionType collectionType, BookSelection bookSelection ) : System
DeleteBook ( Book bookInfo ) : void
GetBookInfos ( ) : IEnumerable
InsertBookInfo ( BookInfo bookInfo ) : void

Insert a book into the appropriate place. If there is already a book with the same FolderPath, replace it.

StopWatchingDirectory ( ) : void

This could plausibly be a Dispose(), but I don't want to make BoolCollection Disposable, as most of them don't need it.

WatchDirectory ( ) : void

Watch for changes to your directory (currently just additions). Raise CollectionChanged if you see anything.

Private Methods

Méthode Description
AddBookInfo ( string folderPath ) : void
BookCollection ( List state ) : System
LoadBooks ( ) : void
MakeCollectionCSSIfMissing ( ) : void
NotifyCollectionChanged ( ) : void
WatcherOnChange ( object sender, FileSystemEventArgs fileSystemEventArgs ) : void

Method Details

AddBookInfo() public méthode

public AddBookInfo ( BookInfo bookInfo ) : void
bookInfo Bloom.Book.BookInfo
Résultat void

BookCollection() public méthode

public BookCollection ( ) : System
Résultat System

BookCollection() public méthode

public BookCollection ( string path, CollectionType collectionType, BookSelection bookSelection ) : System
path string
collectionType CollectionType
bookSelection Bloom.Book.BookSelection
Résultat System

DeleteBook() public méthode

public DeleteBook ( Book bookInfo ) : void
bookInfo Bloom.Book.Book
Résultat void

GetBookInfos() public méthode

public GetBookInfos ( ) : IEnumerable
Résultat IEnumerable

InsertBookInfo() public méthode

Insert a book into the appropriate place. If there is already a book with the same FolderPath, replace it.
public InsertBookInfo ( BookInfo bookInfo ) : void
bookInfo Bloom.Book.BookInfo
Résultat void

StopWatchingDirectory() public méthode

This could plausibly be a Dispose(), but I don't want to make BoolCollection Disposable, as most of them don't need it.
public StopWatchingDirectory ( ) : void
Résultat void

WatchDirectory() public méthode

Watch for changes to your directory (currently just additions). Raise CollectionChanged if you see anything.
public WatchDirectory ( ) : void
Résultat void

Property Details

CollectionChanged public_oe property

public EventHandler CollectionChanged
Résultat EventHandler