private void CreateVault(string fileName) { if (vault != null) { vault.Dispose(); } vault = new MainVault(fileName); archiveList.DataSource = vault.Archives; }
public Archive(BinaryReader br, int id, MainVault sourceVault) { preheader = new PreHeader(br); Offset = (uint)br.BaseStream.Position; ReadHeader(br); data = br.ReadBytes(Size); ending = br.ReadBytes(preheader.FullSize - Size - preheader.Size); this.id = id; vault = sourceVault; }