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

In This Topic
    IEplActionEnable Interface
    In This Topic
    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 tool bar button or menu item points to this Action, they will be also disabled (grayed out).
    Syntax
    public interface IEplActionEnable 
    public interface class 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