diff options
| author | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2022-03-06 21:31:48 +0200 |
|---|---|---|
| committer | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2022-03-06 21:31:48 +0200 |
| commit | 6c56b49d815afa016a4ce74eed3e4b983c8a161c (patch) | |
| tree | ab9c8c2bc5b485b775ec7e03dcc08f9f577a2286 /Software/Visual_Studio/Tango.PMR/ExtensionMethods.cs | |
| parent | 49fa62be60dea8a6c60258925a3eafb42bd9bb33 (diff) | |
| download | Tango-6c56b49d815afa016a4ce74eed3e4b983c8a161c.tar.gz Tango-6c56b49d815afa016a4ce74eed3e4b983c8a161c.zip | |
Save grouping segments in file and loading from file.
Related Work Items: #6268, #6280
Diffstat (limited to 'Software/Visual_Studio/Tango.PMR/ExtensionMethods.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.PMR/ExtensionMethods.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.PMR/ExtensionMethods.cs b/Software/Visual_Studio/Tango.PMR/ExtensionMethods.cs index be0912220..d6fdee50c 100644 --- a/Software/Visual_Studio/Tango.PMR/ExtensionMethods.cs +++ b/Software/Visual_Studio/Tango.PMR/ExtensionMethods.cs @@ -104,4 +104,16 @@ public static class ExtensionMethods return response.Type; } } + + /// <summary> + /// Determines whether this segment is a group. + /// </summary> + /// <param name="segment">The segment.</param> + /// <returns> + /// <c>true</c> if the specified segment is group; otherwise, <c>false</c>. + /// </returns> + public static bool IsGroup(this Tango.PMR.Exports.JobFileSegment segment) + { + return segment.Segments != null && segment.Segments.Count > 0; + } } |
