//----------------------------------------------------------------------------- // ICommand.cs // // Microsoft XNA Community Game Platform // Copyright (C) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Text; namespace Xna.Tools { /// /// Commoand interface that provides Execute and Unexecute methods. /// public interface ICommand { /// /// Execute command. /// void Execute(); /// /// Unexecute (Undo) command. /// void Unexecute(); } /// /// Command handler /// /// /// public delegate void CommandHandler(object sender, ICommand command); }