using System.Collections.Generic; using System.Linq; using UnityEditor.UIElements; using UnityEngine.UIElements; using PlasticGui; using Unity.PlasticSCM.Editor.UI.UIElements; using PlasticGui.WebApi; namespace Unity.PlasticSCM.Editor.Configuration.CloudEdition.Welcome { internal class OrganizationPanel : VisualElement { internal OrganizationPanel( CloudEditionWelcomeWindow parentWindow, IPlasticWebRestApi restApi, string title, List organizations, bool canCreateAnOrganization) { mParentWindow = parentWindow; mRestApi = restApi; mOrganizations = organizations; InitializeLayoutAndStyles(); BuildComponents(title, canCreateAnOrganization); } void BuildComponents(string title, bool canCreateAnOrganization) { mParentWindow.titleContent = new UnityEngine.GUIContent(title); this.SetControlText