private VirtualTreeNode AddFolderNode(Folder folder) { return(AddNode(folder.Name(), Images.GetIconFor(folder), false, folder)); }
private VirtualTreeNode AddVDINode(VDI vdi) { String name = String.IsNullOrEmpty(vdi.Name()) ? Messages.NO_NAME : vdi.Name(); return(AddNode(name, Images.GetIconFor(vdi), false, vdi)); }
private VirtualTreeNode AddHostNode(Host host) { return(AddNode(host.Name(), Images.GetIconFor(host), false, host)); }
private VirtualTreeNode AddVmApplianceNode(VM_appliance appliance) { return(AddNode(appliance.Name(), Images.GetIconFor(appliance), false, appliance)); }
private VirtualTreeNode AddDockerContainerNode(DockerContainer cont) { return(AddNode(cont.Name().Ellipsise(1000), Images.GetIconFor(cont), cont.IsHidden(), cont)); }
private VirtualTreeNode AddPoolNode(Pool pool) { return(AddNode(Helpers.GetName(pool), Images.GetIconFor(pool), false, pool)); }