/// <summary> /// Interpreta el libro /// </summary> public void Parse() { // Interpreta el libro EBookContent = new Application.Bussiness.BookBussiness().Parse(Book, PathTarget); Pages = EBookContent.CountPages(); ActualPage = 1; // Inicializa el ViewModel InitBookView(); }
/// <summary> /// Carga los hijos del nodo /// </summary> public override void LoadChildrenData() { LibraryModelCollection libraries = new Application.Bussiness.LibraryBussiness().Load(Library.Path); BookModelCollection books = new Application.Bussiness.BookBussiness().Load(Library.Path); // Carga las carpetas hija foreach (LibraryModel library in libraries) { Children.Add(new LibraryNodeViewModel(library, this)); } // Carga los libros hijo books.SortByName(); foreach (BookModel book in books) { Children.Add(new BookNodeViewModel(book, this)); } }