Пример #1
0
 public override IEnumerable <Content> Get(ContentType type)
 {
     if (type == ContentType.Package)
     {
         if (Directory.Exists(PathName))
         {
             foreach (var item in Directory.GetDirectories(PathName))
             {
                 if (ContentMSTSPackage.IsValid(item))
                 {
                     yield return(new ContentMSTSPackage(this, Path.GetFileName(item), item));
                 }
             }
         }
     }
 }
Пример #2
0
 public override IEnumerable <Content> Get(ContentType type)
 {
     if (type == ContentType.Package)
     {
         // TODO: Support OR content folders.
         foreach (var folder in Settings.Folders)
         {
             if (ContentMSTSPackage.IsValid(folder.Value))
             {
                 yield return(new ContentMSTSPackage(this, folder.Key, folder.Value));
             }
             else
             {
                 yield return(new ContentMSTSCollection(this, folder.Key, folder.Value));
             }
         }
     }
 }