C# Class Bloom.Collection.BookCollection

Show file Open project: BloomBooks/BloomDesktop Class Usage Examples

Public Properties

Property Type Description
CollectionChanged EventHandler

Public Methods

Method 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

Method 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 method

public AddBookInfo ( BookInfo bookInfo ) : void
bookInfo Bloom.Book.BookInfo
return void

BookCollection() public method

public BookCollection ( ) : System
return System

BookCollection() public method

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

DeleteBook() public method

public DeleteBook ( Book bookInfo ) : void
bookInfo Bloom.Book.Book
return void

GetBookInfos() public method

public GetBookInfos ( ) : IEnumerable
return IEnumerable

InsertBookInfo() public method

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
return void

StopWatchingDirectory() public method

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
return void

WatchDirectory() public method

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

Property Details

CollectionChanged public property

public EventHandler CollectionChanged
return EventHandler