public InstallPackageSection(VisualElement containerElement, SingleService service)
        {
            m_ServiceInstance = service;

            VisualElementUtils.AddUxmlToVisualElement(containerElement, VisualElementConstants.UxmlPaths.InstallPackageTemplate);
            SetupInstallMessage(containerElement, service.title);
            SetupInstallButton(containerElement);
            SetupInstallationHandler(service);
        }
Example #2
0
 static void AddGeneralTemplate(VisualElement templateContainer, string serviceTitle)
 {
     VisualElementUtils.AddUxmlToVisualElement(templateContainer, VisualElementConstants.UxmlPaths.GeneralServicesTemplate);
     SetupTitle(templateContainer, serviceTitle);
 }