public InstallPackageSection(VisualElement containerElement, SingleService service) { m_ServiceInstance = service; VisualElementUtils.AddUxmlToVisualElement(containerElement, VisualElementConstants.UxmlPaths.InstallPackageTemplate); SetupInstallMessage(containerElement, service.title); SetupInstallButton(containerElement); SetupInstallationHandler(service); }
static void AddGeneralTemplate(VisualElement templateContainer, string serviceTitle) { VisualElementUtils.AddUxmlToVisualElement(templateContainer, VisualElementConstants.UxmlPaths.GeneralServicesTemplate); SetupTitle(templateContainer, serviceTitle); }