Esempio n. 1
0
        private void AddChapter()
        {
            Chapter chapter = new Chapter();

            chapter.Id       = Guid.NewGuid().ToString();
            chapter.Order    = GetChapterCount() + 1;
            chapter.Type     = ElementType.Chapter;
            chapter.Name     = "Chapter";
            chapter.IsExpand = true;
            TreeviewItemCollection.Add(chapter);
        }