Index: src/Common/DelftTools.Controls/Command.cs =================================================================== diff -u -r5fc71a385897af92ccb092f2f969b5709afab85a -r893e87bb682400420fd124ca200c511c44f363e5 --- src/Common/DelftTools.Controls/Command.cs (.../Command.cs) (revision 5fc71a385897af92ccb092f2f969b5709afab85a) +++ src/Common/DelftTools.Controls/Command.cs (.../Command.cs) (revision 893e87bb682400420fd124ca200c511c44f363e5) @@ -1,6 +1,3 @@ -using System; -using System.Drawing; - namespace DelftTools.Controls { /// @@ -18,81 +15,15 @@ /// public abstract class Command : ICommand { - private string name; - private Image image; - - /// - /// Commands can be disabled when they should not be used. - /// public abstract bool Enabled { get; } - /// - /// HACK: Commands can checked if they represent a (boolean) state. - /// public virtual bool Checked { set; get; } - /// - /// DisplayName of the command. - /// - public virtual string Name - { - get - { - return name; - } - - protected set - { - string oldName = name; - name = value; - } - } - - #region ICommand Members - - /// - /// Image of the command - /// - public Image Image - { - get - { - return image; - } - set - { - Image oldImage = image; - image = value; - } - } - - #endregion - - /// - /// Method to be called when command will be executed. - /// - /// arguments to the command - protected abstract void OnExecute(params object[] arguments); - - #region ICommand Members - - /// - /// Execute the command. - /// - /// Arguments past to the command. public void Execute(params object[] arguments) { OnExecute(arguments); } - /// - /// Undo the command. - /// - public void Unexecute() - { - throw new NotImplementedException(); - } - - #endregion + protected abstract void OnExecute(params object[] arguments); } } \ No newline at end of file