Ejemplo n.º 1
0
 private static void AddArchiveToSection(ModuleFile moduleFile, string sectionName, string archivePath)
 {
     ModuleFile.ModuleSectionFileList moduleSection;
     if (!moduleFile.HasSection(sectionName))
     {
         moduleSection = new ModuleFile.ModuleSectionFileList(sectionName);
         moduleFile.AddSection(moduleSection);
     }
     else
     {
         moduleSection = moduleFile[sectionName] as ModuleFile.ModuleSectionFileList;
     }
     moduleSection.AddArchive(archivePath, true);
 }
Ejemplo n.º 2
0
 private static void AddArchiveToSection(ModuleFile moduleFile, string sectionName, string archivePath)
 {
     ModuleFile.ModuleSectionFileList moduleSection;
     if (!moduleFile.HasSection(sectionName))
     {
         moduleSection = new ModuleFile.ModuleSectionFileList(sectionName);
         moduleFile.AddSection(moduleSection);
     }
     else
         moduleSection = moduleFile[sectionName] as ModuleFile.ModuleSectionFileList;
     moduleSection.AddArchive(archivePath, true);
 }