diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-02-27 18:25:51 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-02-27 18:25:51 +0200 |
| commit | 03970962af1bfbfc5c13109c3f0a465cf9a1dc29 (patch) | |
| tree | 94d97e7aff1e6c0e95495636540c7fa99f5ef16d /Software/Visual_Studio/Tango.Console/ConsoleCommandExecutingEventArgs.cs | |
| parent | cd974051e442dd0420eb14513a57855e69beef86 (diff) | |
| download | Tango-03970962af1bfbfc5c13109c3f0a465cf9a1dc29.tar.gz Tango-03970962af1bfbfc5c13109c3f0a465cf9a1dc29.zip | |
Create FSE module project template.
Implemented core PPC console components.
Added FSE PPC Console module.
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); + } + } +} |
