// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
namespace ICSharpCode.Core
{
///
/// A basic command interface. A command has simply an owner which "runs" the command
/// and a Run method which invokes the command.
///
public interface ICommand
{
///
/// Returns the owner of the command.
///
object Owner {
get;
set;
}
///
/// Invokes the command.
///
void Run();
///
/// Is called when the Owner property is changed.
///
event EventHandler OwnerChanged;
}
}