public static ChainEntry FillChainEntry(string filename, List <string> subnames, TreeView tree, BinaryReader br, int c, int ID, Type filetype = null)
        {
            ChainEntry chnentry = new ChainEntry();

            FillEntry(filename, subnames, tree, br, c, ID, chnentry, filetype);

            chnentry._FileType = chnentry.FileExt;
            chnentry._FileName = chnentry.TrueName;
            chnentry._DecompressedFileLength = chnentry.UncompressedData.Length;
            chnentry._CompressedFileLength   = chnentry.CompressedData.Length;

            return(chnentry);
        }
        public static ChainEntry InsertChainEntry(TreeView tree, ArcEntryWrapper node, string filename, Type filetype = null)
        {
            ChainEntry chnentry = new ChainEntry();

            InsertEntry(tree, node, filename, chnentry);

            chnentry.DecompressedFileLength  = chnentry.UncompressedData.Length;
            chnentry._DecompressedFileLength = chnentry.UncompressedData.Length;
            chnentry.CompressedFileLength    = chnentry.CompressedData.Length;
            chnentry._CompressedFileLength   = chnentry.CompressedData.Length;
            chnentry._FileName = chnentry.TrueName;
            chnentry._FileType = chnentry.FileExt;
            chnentry.EntryName = chnentry.FileName;



            return(chnentry);
        }
        public static ChainEntry ReplaceChainEntry(TreeView tree, ArcEntryWrapper node, string filename, Type filetype = null)
        {
            ChainEntry chnentry = new ChainEntry();
            ChainEntry oldentry = new ChainEntry();

            tree.BeginUpdate();

            ReplaceEntry(tree, node, filename, chnentry, oldentry);

            chnentry.DecompressedFileLength  = chnentry.UncompressedData.Length;
            chnentry._DecompressedFileLength = chnentry.UncompressedData.Length;
            chnentry.CompressedFileLength    = chnentry.CompressedData.Length;
            chnentry._CompressedFileLength   = chnentry.CompressedData.Length;
            chnentry._FileName = chnentry.TrueName;
            chnentry._FileType = chnentry.FileExt;

            return(node.entryfile as ChainEntry);
        }