aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-08-20 20:02:22 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2016-09-01 12:44:39 +0200
commit2f6ce15a6a5639e10367f8f73bcf4b1d1c4a41fe (patch)
tree71bb20be815ad9196f9e24d8a995fa2fa75d5530 /src/GraphicObjects
parenta1e2e7de61606024e25e8122596492122ffae2ae (diff)
MenuItem execute
Diffstat (limited to 'src/GraphicObjects')
-rw-r--r--src/GraphicObjects/MenuItem.cs11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/GraphicObjects/MenuItem.cs b/src/GraphicObjects/MenuItem.cs
index 2734377e..dd39524c 100644
--- a/src/GraphicObjects/MenuItem.cs
+++ b/src/GraphicObjects/MenuItem.cs
@@ -30,11 +30,10 @@ namespace Crow
public MenuItem () : base() {}
#endregion
-// public event EventHandler Pop;
-// public event EventHandler Unpop;
+ public event EventHandler Execute;
string caption;
- Command command;
+ Command command;//TODO
[XmlAttributeAttribute()][DefaultValue(null)]
public virtual Command Command {
@@ -75,5 +74,11 @@ namespace Crow
base.AddItem (g);
g.NotifyValueChanged ("Orientation", Alignment.Right);
}
+
+ void onMI_Click (object sender, MouseButtonEventArgs e)
+ {
+ Execute.Raise (this, null);
+ }
}
}
+