Exemplo n.º 1
0
        private bool SetPairedEntry(ArchiveListing listing, ArchiveEntry entry, string ext, string longName)
        {
            Pair <ArchiveEntry, ArchiveEntry> pair = ProvidePair(longName);

            if (ext == ".win32.imgb")
            {
                pair.Item2 = entry;
            }
            else
            {
                pair.Item1 = entry;
            }

            if (!pair.IsAnyEmpty)
            {
                UiArchiveExtension extension = GetArchiveExtension(pair.Item1);

                UiFileTableNode        node      = new UiFileTableNode(listing, extension, pair.Item1, pair.Item2);
                ConcurrentBag <UiNode> container = ProvideRootNodeChilds(extension);
                container.Add(node);
            }

            return(true);
        }
Exemplo n.º 2
0
        private bool SetPairedEntry(ArchiveListing listing, ArchiveEntry entry, string ext, string longName)
        {
            Pair<ArchiveEntry, ArchiveEntry> pair = ProvidePair(longName);

            if (ext == ".win32.imgb")
                pair.Item2 = entry;
            else
                pair.Item1 = entry;

            if (!pair.IsAnyEmpty)
            {
                UiArchiveExtension extension = GetArchiveExtension(pair.Item1);

                UiFileTableNode node = new UiFileTableNode(listing, extension, pair.Item1, pair.Item2);
                ConcurrentBag<UiNode> container = ProvideRootNodeChilds(extension);
                container.Add(node);
            }

            return true;
        }