Ejemplo n.º 1
0
        /// <summary>
        /// Adds the actions from the specified factory.
        /// </summary>
        /// <param name="actionFactory">The action factory.</param>
        public void Add(IActionFactory actionFactory)
        {
            if (actionFactory == null)
            {
                throw new ArgumentNullException("actionFactory");
            }

            ICollection <Action> newActions = actionFactory.CreateActions();

            Add(newActions);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Adds the actions from the specified factory.
        /// </summary>
        /// <param name="actionFactory">The action factory.</param>
        public void Add(IActionFactory actionFactory)
        {
            if (actionFactory == null)
            {
                throw new ArgumentNullException("actionFactory");
            }

            ICollection<Action> newActions = actionFactory.CreateActions();

            Add(newActions);
        }