Example #1
0
        private void ParseChapterImages()
        {
            int num1 = 0;

            for (int index1 = 0; index1 < this._Book.Chapters.Count; ++index1)
            {
                num1 = index1 >= this._Book.Chapters.Count - 1 ? this._TotalImageList.Count : this._ChaptersOff[index1 + 1];
                int num2 = this._ChaptersOff[index1];
                for (int index2 = this._ChaptersOff[index1]; index2 < num1; ++index2)
                {
                    this._Book.Chapters[index1].AppendImage(this._TotalImageList[index2]);
                }
            }
            if (num1 < this._TotalImageList.Count)
            {
                CChapter chapter = new CChapter("未知", string.Empty);
                for (int index = num1; index < this._TotalImageList.Count; ++index)
                {
                    chapter.AppendImage(this._TotalImageList[index]);
                }
                this._Book.AppendChapter(chapter);
            }
            this._TotalImageList.Clear();
        }
Example #2
0
 public void AppendChapter(CChapter chapter)
 {
     this._Book_Chapters.Add(chapter);
 }