public clsShapeRepository(string RepositoryDirectory)
        {
            DirectoryInfo oDIRoot = new DirectoryInfo(RepositoryDirectory);

            Contents = new Dictionary <string, clsZipFileInfo>();

            foreach (FileInfo oFI in oDIRoot.EnumerateFiles("*.zip"))
            {
                clsZipFileInfo oZipFileInfo = new clsZipFileInfo(oFI.FullName);
                Contents.Add(oFI.Name, oZipFileInfo);
            }
        }
Example #2
0
 public ShapeExtractor(string PathName)
 {
     if (File.Exists(PathName))
     {
         _ZipFileInfo = new clsZipFileInfo(PathName);
     }
     else
     {
         if (Directory.Exists(PathName))
         {
             _Repository = new clsShapeRepository(PathName);
         }
         else
         {
             return;
         }
     }
 }
        public clsZipFileInfo FindZipFile(string Filter)
        {
            clsZipFileInfo oZipFileInfo = Contents.FirstOrDefault(x => x.Key.ToUpper() == Filter).Value;

            return(oZipFileInfo);
        }