aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Core/Commands
diff options
context:
space:
mode:
authorRoy <roy.mail.net@gmail.com>2017-12-09 00:31:12 +0200
committerRoy <roy.mail.net@gmail.com>2017-12-09 00:31:12 +0200
commitcf7af2bc991e99b9dc82f4f54784d0eaa9a043b0 (patch)
treeb87a44c720b745294eb021b4393a43d480da3961 /Software/Visual_Studio/Tango.Core/Commands
parentdb4db5d05b42cbc795b3a38bba3e6c87f30d583f (diff)
downloadTango-cf7af2bc991e99b9dc82f4f54784d0eaa9a043b0.tar.gz
Tango-cf7af2bc991e99b9dc82f4f54784d0eaa9a043b0.zip
Stubs execution utility almost done.
Diffstat (limited to 'Software/Visual_Studio/Tango.Core/Commands')
-rw-r--r--Software/Visual_Studio/Tango.Core/Commands/RelayCommand.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Core/Commands/RelayCommand.cs b/Software/Visual_Studio/Tango.Core/Commands/RelayCommand.cs
index f57a8699f..16af1651c 100644
--- a/Software/Visual_Studio/Tango.Core/Commands/RelayCommand.cs
+++ b/Software/Visual_Studio/Tango.Core/Commands/RelayCommand.cs
@@ -74,6 +74,12 @@ namespace Tango.Core.Commands
public sealed class RelayCommand<T> : ICommand
{
+ #region Events
+
+ public event EventHandler<T> Executed;
+
+ #endregion
+
#region fields
readonly Predicate<object> canExecute;
readonly Action<T> execute;
@@ -121,6 +127,7 @@ namespace Tango.Core.Commands
if (this.execute != null)
{
this.execute((T)parameter);
+ Executed?.Invoke(this, (T)parameter);
}
}
#endregion ICommand methods