public GliderScoreZip(string fileName) { ZipFileName = fileName; using (var zip = ZipFile.OpenRead(ZipFileName)) { var mdbEntry = zip.Entries.First(x => x.Name == "GliderScoreData.mdb"); mdbExtractedFileName = Path.GetTempFileName(); tempFileNames.Add(mdbExtractedFileName); File.Delete(mdbExtractedFileName); mdbEntry.ExtractToFile(mdbExtractedFileName); zipMDB = new GliderScoreMDB(mdbExtractedFileName); } }
public GliderScoreDirectory(string path) { gsRootPath = path; directoryMDB = new GliderScoreMDB(Path.Combine(gsRootPath, "GliderScoreData.mdb")); }