HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/TDijk1/erp-apps.eu/wwwroot/CMSSiteManager/Development/development.aspx.cs
using System;
using System.Collections.Generic;

using CMS.LicenseProvider;
using CMS.SettingsProvider;
using CMS.SiteProvider;
using CMS.UIControls;

[Title("CMSModules/CMS_Development/module.png", "Header.Development", "")]
public partial class CMSSiteManager_Development_development : SiteManagerPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        uiGuide.OnGuideItemCreated += uiGuide_OnGuideItemCreated;
    }


    protected List<string> uiGuide_OnGuideItemCreated(UIElementInfo uiElement, List<string> defaultItem)
    {
        switch (uiElement.ElementName.ToLowerCSafe())
        {
            case "development.notifications":
                if (!LicenseHelper.IsFeatureAvailableInUI(FeatureEnum.Notifications, ModuleEntry.NOTIFICATIONS))
                {
                    return null;
                }
                break;

            case "development.customtables":
                if (!LicenseHelper.IsFeatureAvailableInUI(FeatureEnum.CustomTables))
                {
                    return null;
                }
                break;

            case "development.translationservices":
                if (!LicenseHelper.IsFeatureAvailableInUI(FeatureEnum.TranslationServices, ModuleEntry.TRANSLATIONSERVICES))
                {
                    return null;
                }
                break;

            case "development.workflows":
                if (!LicenseHelper.IsFeatureAvailableInUI(FeatureEnum.WorkflowVersioning))
                {
                    return null;
                }
                break;
        }

        return defaultItem;
    }
}