示例#1
0
        protected void RemoveAction(IElementAction action)
        {
            if (action == null)
            {
                throw new ArgumentNullException(nameof(action));
            }

            _actions.Remove(action);
        }
示例#2
0
        public void AddAction(IElementAction action)
        {
            if (action == null)
            {
                throw new ArgumentNullException(nameof(action));
            }

            _actions.Add(action);
        }
示例#3
0
        internal static ElementActionState Create(IElementAction elementAction)
        {
            if (elementAction == null)
            {
                throw new ArgumentNullException("elementAction");
            }
            var data = new ElementActionState(elementAction.Id)
            {
                ActionId  = elementAction.ActionId,
                ElementId = elementAction.ElementId,
                IsAllowed = elementAction.IsAllowed,
                IsAudit   = elementAction.IsAudit
            };

            return(data);
        }
示例#4
0
 public StatePlanElementStrategy(IElementAction action)
 {
     _action = action;
 }
示例#5
0
        protected void RemoveAction(IElementAction action)
        {
            if (action == null) throw new ArgumentNullException(nameof(action));

            _actions.Remove(action);
        }
示例#6
0
        public void AddAction(IElementAction action)
        {
            if (action == null) throw new ArgumentNullException(nameof(action));

            _actions.Add(action);
        }