예제 #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);
     }
 }
예제 #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);
예제 #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);
 }