Exemplo n.º 1
0
        private static void LinkTriple(TripleKeyedVirtualFolder folder,
                                       IMediaAudioResource r, string key1,
                                       string key2)
        {
            if (string.IsNullOrWhiteSpace(key1))
            {
                return;
            }
            if (string.IsNullOrWhiteSpace(key2))
            {
                return;
            }
            var targetFolder = folder
                               .GetFolder(key1.StemCompareBase().First().ToString()
                                          .ToUpper(CultureInfo.CurrentUICulture))
                               .GetFolder(key1.StemNameBase());

            targetFolder
            .GetFolder(key2.StemNameBase())
            .AddResource(r);
            var allRes = new AlbumInTitleAudioResource(r);

            targetFolder
            .GetFolder("All Albums")
            .AddResource(allRes);
        }
Exemplo n.º 2
0
 private static void LinkTriple(TripleKeyedVirtualFolder folder, IMediaResource r, string key1, string key2)
 {
     if (string.IsNullOrWhiteSpace(key1))
     {
         return;
     }
     if (string.IsNullOrWhiteSpace(key2))
     {
         return;
     }
     folder
     .GetFolder(key1.StemCompareBase().First().ToString().ToUpper())
     .GetFolder(key1.StemNameBase())
     .GetFolder(key2.StemNameBase())
     .AddResource(r);
 }