Exemple #1
0
 /*
  * Redefine ChapterSummaries handling so no data is duplicated
  *
  */
 public override void addChapterSummary(ChapterSummary chapter)
 {
     if (chapter is Chapter)
     {
         chapters.Add((Chapter)chapter);
     }
 }
Exemple #2
0
        public virtual object Clone()
        {
            ChapterSummary cs = (ChapterSummary)this.MemberwiseClone();

            cs.adaptationName     = (adaptationName != null ? adaptationName : null);
            cs.assessmentName     = (assessmentName != null ? assessmentName : null);
            cs.description        = (description != null ? description : null);
            cs.path               = (path != null ? path : null);
            cs.title              = (title != null ? title : null);
            cs.adaptationProfiles = (adaptationProfiles != null ? new List <AdaptationProfile>() : null);
            cs.assessmentProfiles = (assessmentProfiles != null ? new List <AssessmentProfile>() : null);
            return(cs);
        }
 /**
  * Adds a new chapter to the list
  *
  * @param chapter
  *            Chapter to be added
  */
 public virtual void addChapterSummary(ChapterSummary chapter)
 {
     contents.Add(chapter);
 }