Ejemplo n.º 1
0
        private void ShowAddonContents()
        {
            string publisher;
            string name = GetSelectedAddonNamePublisher(out publisher);

            AddonPackage package = _addonPackageSet.FindByName(name, publisher);

            if (package == null)
            {
                return;
            }


            AssetSearchCriteria criteria = null;

            if (!_listAlwaysAnimations && (package.AssetSummary.Verbs > 0))
            {
                AddonAssetType types = AddonAssetType.Any ^ AddonAssetType.Animation;
                criteria = new AssetSearchCriteria(null, types, null, null, null);
            }

            List <AssetSearchResultItem> assets = _addonPackageSet.SearchAsset(new List <AddonPackage>()
            {
                package
            }, criteria);

            AddonContentForm contentForm = new AddonContentForm($"{publisher}.{name}", assets);

            contentForm.Show(this);
        }
Ejemplo n.º 2
0
        private void ShowAddonContents(AddonPackage pAddon)
        {
            List <AssetSearchResultItem> assets = _addonPackageSet.SearchAsset(new List <AddonPackage>()
            {
                pAddon
            }, null);

            AddonContentForm contentForm = new AddonContentForm($"{pAddon.Publisher}.{pAddon.Name}", assets);

            contentForm.Show(this);
        }