internal void SetPreviousBook(Book book) { Previous = book; if (book != null) book.SetNextBook(this); }
internal void SetNextBook(Book book) { Next = book; InitializeChapterChain(); if (book != null) { book.FirstChapter.SetPreviousChapter(this.LastChapter); } }
protected Chapter(Book parent, int number) { Book = parent; Number = number; }
internal static Book Create(BookType testament, string name, string abbreviation) { if (testament == BookType.NewTestament) _newTestament++; else if (testament == BookType.OldTestament) _oldTestament++; Book b = new Book(testament == BookType.NewTestament ? _newTestament : _oldTestament,testament,name, abbreviation); return b; }
internal Chapter(Book parent) : this(parent, 0) { }