/// <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); } }
/// <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); }