コード例 #1
0
ファイル: Element.cs プロジェクト: rquackenbush/VPL
        protected void RemoveAction(IElementAction action)
        {
            if (action == null)
            {
                throw new ArgumentNullException(nameof(action));
            }

            _actions.Remove(action);
        }
コード例 #2
0
ファイル: Element.cs プロジェクト: rquackenbush/VPL
        public void AddAction(IElementAction action)
        {
            if (action == null)
            {
                throw new ArgumentNullException(nameof(action));
            }

            _actions.Add(action);
        }
コード例 #3
0
ファイル: ElementActionState.cs プロジェクト: zszqwe/anycmd
        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
ファイル: Element.cs プロジェクト: CaptiveAire/VPL
        protected void RemoveAction(IElementAction action)
        {
            if (action == null) throw new ArgumentNullException(nameof(action));

            _actions.Remove(action);
        }
コード例 #6
0
ファイル: Element.cs プロジェクト: CaptiveAire/VPL
        public void AddAction(IElementAction action)
        {
            if (action == null) throw new ArgumentNullException(nameof(action));

            _actions.Add(action);
        }