Index: src/Common/DelftTools.Controls/Command.cs
===================================================================
diff -u -r8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9 -r5fc71a385897af92ccb092f2f969b5709afab85a
--- src/Common/DelftTools.Controls/Command.cs (.../Command.cs) (revision 8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9)
+++ src/Common/DelftTools.Controls/Command.cs (.../Command.cs) (revision 5fc71a385897af92ccb092f2f969b5709afab85a)
@@ -22,12 +22,6 @@
private Image image;
///
- /// Method to be called when command will be executed.
- ///
- /// arguments to the command
- protected abstract void OnExecute(params object[] arguments);
-
- ///
/// Commands can be disabled when they should not be used.
///
public abstract bool Enabled { get; }
@@ -37,33 +31,15 @@
///
public virtual bool Checked { set; get; }
- #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
-
- ///
/// DisplayName of the command.
///
public virtual string Name
{
- get { return name; }
+ get
+ {
+ return name;
+ }
protected set
{
@@ -79,7 +55,10 @@
///
public Image Image
{
- get { return image; }
+ get
+ {
+ return image;
+ }
set
{
Image oldImage = image;
@@ -88,5 +67,32 @@
}
#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
}
}
\ No newline at end of file