Пример #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);
 }
Пример #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);
 }