using System;
using Rothko.Interfaces.Commands;

namespace Rothko.Commands
{
	public class CommandStackerCommand : ICommand
	{
		readonly ICommand[] _Commands;

		public ICommand[] Commands { get { return _Commands; } }

		public void Execute()
		{
			foreach (var item in Commands)
				item.Execute();
		}

		public CommandStackerCommand (params ICommand[] commands)
		{
			_Commands = commands;
		}
	}
}

