public static frmPackAssetTNodeTag AddCollectionToTView(TreeView tView, RMCollection collection, string rootDirectory = null)
        {
            TreeNode             tNode = new TreeNode();
            frmPackAssetTNodeTag tag   = new frmPackAssetTNodeTag(tNode, collection, rootDirectory);

            tNode.Text = tag.ToString();
            tNode.Tag  = tag;
            tView.Nodes.Add(tNode);
            return(tag);
        }
        public frmPackAssetTNodeTag(TreeNode myNode, RMCollection collection, string rootDir)
        {
            TagObjectType  = TagType.Collection;
            CollectionType = collection.GetRMCollectionType();
            AssociatedNode = myNode;
            Object         = collection;

            if (CollectionType == RMCollectionType.BGM || CollectionType == RMCollectionType.BGS || CollectionType == RMCollectionType.ME || CollectionType == RMCollectionType.SE)
            {
                ProcessAudioGroups(myNode, collection as RMAudioCollection, rootDir);
                return;
            }
            else if (CollectionType == RMCollectionType.Characters)
            {
                ProcessCharacterGroups(myNode, collection as RMCharImageCollection, rootDir);
                return;
            }
            else if (CollectionType == RMCollectionType.Generator)
            {
                ProcessGeneratorGroups(myNode, collection as RMGeneratorCollection, rootDir);
                return;
            }
            else if (CollectionType == RMCollectionType.Movies)
            {
                ProcessMovieGroups(myNode, collection as RMMovieCollection, rootDir);
                return;
            }
            else if (CollectionType == RMCollectionType.Tilesets)
            {
                ProcessTilesetGroups(myNode, collection as RMTilesetCollection, rootDir);
                return;
            }
            else
            {
                ProcessSingleFileCollection(myNode, collection as RMSingleFileCollection, rootDir);
                return;
            }
            //else if (CollectionType == RMCollectionType.Animation || CollectionType == RMCollectionType.BattleBacks_1 || CollectionType == RMCollectionType.BattleBacks_2
            //    || CollectionType == RMCollectionType.Data || CollectionType == RMCollectionType.Parallaxes || CollectionType == RMCollectionType.Pictures
            //    || CollectionType == RMCollectionType.Plugins || CollectionType == RMCollectionType.System_Image || CollectionType == RMCollectionType.Titles1
            //    || CollectionType == RMCollectionType.Titles2)
        }