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/RMourik/bassol.nl/CMS/CMSModules/Workflows/Controls/UI/WorkflowAction/Edit.ascx.cs
using System;

using CMS.Core;
using CMS.FormControls;
using CMS.Helpers;
using CMS.PortalEngine;
using CMS.UIControls;
using CMS.WorkflowEngine;
using CMS.ExtendedControls;
using CMS.DataEngine;

public partial class CMSModules_Workflows_Controls_UI_WorkflowAction_Edit : CMSAdminEditControl
{
    #region "Properties"

    /// <summary>
    /// Forced allowed objects for action.
    /// </summary>
    public string AllowedObjects
    {
        get;
        set;
    }


    /// <summary>
    /// Current object type.
    /// </summary>
    public string ObjectType
    {
        get
        {
            return formElem.ObjectType;
        }
        set
        {
            formElem.ObjectType = value;
        }
    }


    /// <summary>
    /// Edited workflow action.
    /// </summary>
    public WorkflowActionInfo CurrentAction
    {
        get
        {
            return (WorkflowActionInfo)formElem.EditedObject;
        }
    }


    /// <summary>
    /// UIForm control
    /// </summary>
    public UIForm EditForm
    {
        get
        {
            return formElem;
        }
    }

    #endregion


    #region "Page events"

    protected void Page_Load(object sender, EventArgs e)
    {
        ucThumbnail.SetValue("IconCssFieldName", "ActionThumbnailClass");
        ucThumbnail.SetValue("Category", ObjectAttachmentsCategories.THUMBNAIL);

        ucIcon.SetValue("IconCssFieldName", "ActionIconClass");
        ucIcon.SetValue("Category", ObjectAttachmentsCategories.ICON);

        assemblyElem.BaseClassNames = (formElem.ObjectType == WorkflowActionInfo.OBJECT_TYPE_AUTOMATION) ? "CMS.Automation.AutomationAction, CMS.Automation" : "CMS.DocumentEngine.DocumentWorkflowAction, CMS.DocumentEngine";

        pnlImages.Visible = (formElem.Mode != FormModeEnum.Insert);

        if (!String.IsNullOrEmpty(AllowedObjects))
        {
            // Ensure correct allowed objects format
            CurrentAction.ActionAllowedObjects = ";" + AllowedObjects.Trim(';') + ";";
        }
    }

    #endregion
}