add ActivationDelegate to CommandLineCommand

This commit is contained in:
Michael Becker 2022-12-04 13:59:55 -05:00
parent 53fefe96f5
commit 3776abb71a
No known key found for this signature in database
GPG Key ID: DA394832305DA332

View File

@ -47,13 +47,16 @@ namespace MBS.Framework
public CommandLineOption.CommandLineOptionCollection Options { get; } = new CommandLineOption.CommandLineOptionCollection();
public CommandLineCommand(string command, CommandLineOption[] options = null)
public Action<ApplicationActivatedEventArgs> ActivationDelegate { get; } = null;
public CommandLineCommand(string command, CommandLineOption[] options = null, Action<ApplicationActivatedEventArgs> activationDelegate = null)
{
Name = command;
if (options != null)
{
Options.AddRange(options);
}
ActivationDelegate = activationDelegate;
}
}
}