Skip to content

Commit 232abee

Browse files
committed
Add paths under the route category (after the activities).
1 parent 35839a7 commit 232abee

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Source/Contrib/ContentManager/ContentMSTS.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,13 @@ public override IEnumerable<Content> Get(ContentType type)
127127
foreach (var item in Enumerable.Concat(Directory.GetFiles(pathOR, "*.timetable_or"), Directory.GetFiles(pathOR, "*.timetable-or")))
128128
yield return new ContentORTimetableActivity(this, Path.Combine(pathOR, item));
129129
}
130+
else if (type == ContentType.Path)
131+
{
132+
var path = Path.Combine(PathName, "Paths");
133+
if (Directory.Exists(path))
134+
foreach (var item in Directory.GetFiles(path, "*.pat"))
135+
yield return new ContentMSTSPath(this, Path.Combine(path, item));
136+
}
130137
}
131138

132139
public override Content Get(string name, ContentType type)

0 commit comments

Comments
 (0)