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

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

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

            return(ccolentry);
        }
        public static ChainCollisionEntry InsertChainCollEntry(TreeView tree, ArcEntryWrapper node, string filename, Type filetype = null)
        {
            ChainCollisionEntry ccolentry = new ChainCollisionEntry();

            InsertEntry(tree, node, filename, ccolentry);

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



            return(ccolentry);
        }
        public static ChainCollisionEntry ReplaceChainCollEntry(TreeView tree, ArcEntryWrapper node, string filename, Type filetype = null)
        {
            ChainCollisionEntry ccolentry = new ChainCollisionEntry();
            ChainCollisionEntry oldentry  = new ChainCollisionEntry();

            tree.BeginUpdate();

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

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

            return(node.entryfile as ChainCollisionEntry);
        }