public Map(string PartsPath, string CgDbPath) { this.PartsPath = PartsPath; this.CgDbPath = CgDbPath; CgDb = new CgDb(); CgDb.Load(new MemoryStream(Decrypt.DecryptData(File.ReadAllBytes(CgDbPath)))); }
public void TestCgDbLoad() { var CgDb = new CgDb(); CgDb.Load(new MemoryStream(Decrypt.DecryptData(File.ReadAllBytes(TestUtils.TestInput + @"\cgdb.dat")))); foreach (var Entry in CgDb.Entries.Values) { Console.WriteLine(Entry); } }