Opc.Ua.ConditionState.SetEnableState C# (CSharp) Method

SetEnableState() public method

Sets the enable state for the condition without raising events.
This method ensures all related variables are set correctly.
public SetEnableState ( ISystemContext context, bool enabled ) : void
context ISystemContext The system context.
enabled bool If true the condition is put into the Enabled state.
return void
        public virtual void SetEnableState(ISystemContext context, bool enabled)
        {
            if (enabled)
            {
                UpdateStateAfterEnable(context);
            }
            else
            {
                UpdateStateAfterDisable(context);
            }
        }