示例#1
0
 internal void SetPreviousBook(Book book)
 {
     Previous = book;
     if (book != null) book.SetNextBook(this);
 }
示例#2
0
 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;
 }
示例#4
0
 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)
 {
 }