diff options
Diffstat (limited to 'Software/Visual_Studio/Tango.Console/ConsoleCommandExecutingEventArgs.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Console/ConsoleCommandExecutingEventArgs.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Console/ConsoleCommandExecutingEventArgs.cs b/Software/Visual_Studio/Tango.Console/ConsoleCommandExecutingEventArgs.cs new file mode 100644 index 000000000..04ff41f91 --- /dev/null +++ b/Software/Visual_Studio/Tango.Console/ConsoleCommandExecutingEventArgs.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.Console +{ + public class ConsoleCommandExecutingEventArgs : EventArgs + { + private Action<String, String> _completedAction; + + public ConsoleCommand Command { get; private set; } + + public ConsoleCommandExecutingEventArgs(ConsoleCommand command, Action<String, String> completedAction) + { + Command = command; + _completedAction = completedAction; + } + + public void Complete(String output, String nextWorkingFolder) + { + _completedAction.Invoke(output, nextWorkingFolder); + } + } +} |
