Beispiel #1
0
 /// <summary>
 /// Allows for the removal of a specific chapter configuration
 /// </summary>
 /// <param name="chapter"></param>
 public void Remove(ChapterConfigurationElement chapter)
 {
     if (chapter == null)
     {
         throw new ArgumentNullException(nameof(chapter));
     }
     if (BaseIndexOf(chapter) >= 0)
     {
         BaseRemove(chapter.Number);
     }
 }
Beispiel #2
0
 /// <summary>
 /// returns the index of the given element
 /// </summary>
 /// <param name="chapter">the chapter to find</param>
 /// <returns></returns>
 public int IndexOf(ChapterConfigurationElement chapter) => BaseIndexOf(chapter);
Beispiel #3
0
 /// <summary>
 /// Adds a new chapter to configuration
 /// </summary>
 /// <param name="chapter">the chapter info to add</param>
 public void Add(ChapterConfigurationElement chapter)
 {
     BaseAdd(chapter);
 }