Exemplo n.º 1
0
 internal void SetPreviousBook(Book book)
 {
     Previous = book;
     if (book != null) book.SetNextBook(this);
 }
Exemplo n.º 2
0
 internal void SetNextBook(Book book)
 {
     Next = book;
     InitializeChapterChain();
     if (book != null)
     {
         book.FirstChapter.SetPreviousChapter(this.LastChapter);
     }
 }
Exemplo n.º 3
0
 protected Chapter(Book parent, int number)
 {
     Book = parent;
     Number = number;
 }
Exemplo n.º 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;
 }
Exemplo n.º 5
0
 internal Chapter(Book parent)
     : this(parent, 0)
 {
 }