示例#1
0
        /// <summary>
        /// Deletes the section "SectionToDelete" from the ParentSection if it exists
        /// </summary>
        /// <param name="ParentSection"></param>
        /// <param name="SectionToDelete"></param>
        public static void SafeDeleteSection(PFSSection ParentSection, string SectionToDelete)
        {
            PFSSection DeleteME = ParentSection.GetSection(SectionToDelete, 1);

            if (DeleteME != null)
            {
                ParentSection.DeleteSection(DeleteME);
            }
        }
示例#2
0
 /// <summary>
 /// Deletes the section "SectionToDelete" from the ParentSection if it exists
 /// </summary>
 /// <param name="ParentSection"></param>
 /// <param name="SectionToDelete"></param>
 public static void SafeDeleteSection(PFSSection ParentSection, string SectionToDelete)
 {
   PFSSection DeleteME = ParentSection.GetSection(SectionToDelete, 1);
   if (DeleteME != null)
     ParentSection.DeleteSection(DeleteME);
 }