示例#1
0
 /// <summary>
 /// Encapsulates a <see cref="Group"/> and its children as a <see cref="GroupOrphan"/>.
 /// </summary>
 /// <param name="value">The group to encapsulate.</param>
 /// <param name="children">The children of the group.</param>
 /// <returns>A <see cref="GroupOrphan"/> encapsulating the specified <see cref="Group"/> and children.</returns>
 public override PrtgOrphan Orphan(ITreeValue value, IEnumerable <PrtgOrphan> children) =>
 PrtgOrphan.Group((IGroup)value, children);
示例#2
0
 /// <summary>
 /// Creates a new <see cref="GroupNode"/> from a group and its children.
 /// </summary>
 /// <param name="group">The group this node represents.</param>
 /// <param name="children">The children of this node.</param>
 /// <returns>A node containing the specified group and a copy of the children that point to this node as their parent.</returns>
 public static GroupNode Group(Group group, IEnumerable <PrtgNode> children) =>
 PrtgOrphan.Group(group, GetOrphans(children)).ToStandaloneNode <GroupNode>();