InitializeMacroCommand()

Initialize the MacroCommand.
Namespace: PureMVC.Patterns.CommandAssembly: PureMVC in (PureMVC.dll)

Syntax

C#
protected void InitializeMacroCommand()

Remarks

In your subclass, override this method to initialize the MacroCommand's SubCommand list with ICommand class references like this:

override void InitializeMacroCommand() 
{
    AddSubCommand(() => new com.me.myapp.controller.FirstCommand());
    AddSubCommand(() => new com.me.myapp.controller.SecondCommand());
    AddSubCommand(() => new com.me.myapp.controller.ThirdCommand());
}

Note that SubCommands may be any ICommand implementor, MacroCommands or SimpleCommands are both acceptable.