mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-26 12:08:37 +08:00
22 lines
533 B
C#
22 lines
533 B
C#
using System.Collections.Generic;
|
|
using mRemoteNG.Connection;
|
|
using mRemoteNG.Container;
|
|
|
|
|
|
namespace mRemoteNG.Tree
|
|
{
|
|
public class ConnectionTreeModel
|
|
{
|
|
public List<ContainerInfo> RootNodes { get; } = new List<ContainerInfo>();
|
|
|
|
public void AddRootNode(ContainerInfo rootNode)
|
|
{
|
|
RootNodes.Add(rootNode);
|
|
}
|
|
|
|
public IEnumerable<ConnectionInfo> GetRecursiveChildList(ContainerInfo container)
|
|
{
|
|
return container.GetRecursiveChildList();
|
|
}
|
|
}
|
|
} |