Eplan Platform API
Eplan.EplApi.ApplicationFramework Namespace / IEplActionEnable Interface
Members Example

IEplActionEnable Interface
Interface to enable or disable an Action. If this interface is not used, the Action is enabled by default. If you implement this interface in an action class, you can set the respective Action to disabled. If a ribbon item points to this Action, they will be also disabled (grayed out).
Syntax
public interface IEplActionEnable 
Example
public class TestAction : Eplan.EplApi.ApplicationFramework.IEplAction, Eplan.EplApi.ApplicationFramework.IEplActionEnable
    {
        //IEplAction Members

        #region IEplActionEnable Members

        public bool Enabled(string strActionName, Eplan.EplApi.ApplicationFramework.ActionCallingContext actionContext)
        {
            if (strActionName == "TESTACTION")
            {
                return false;
            }
            else
            {
                return true;
            }
        }
        #endregion
    }
Public Methods
 NameDescription
 MethodOne action can be enabled or disabled. Return true when it is enabled.  
Top
See Also