Method AddCommand
AddCommand(Command, CommandImplementation)
Sets the function that will be invoked for a Command. Views should call AddCommand for each command they support.
If AddCommand has already been called for command
impl
will
replace the old one.
protected void AddCommand(Command command, View.CommandImplementation impl)
Parameters
command
CommandThe command.
impl
View.CommandImplementationThe delegate.
Remarks
This version of AddCommand is for commands that require CommandContext.
AddCommand(Command, Func<bool?>)
Sets the function that will be invoked for a Command. Views should call AddCommand for each command they support.
If AddCommand has already been called for command
impl
will
replace the old one.
protected void AddCommand(Command command, Func<bool?> impl)
Parameters
Remarks
This version of AddCommand is for commands that do not require a CommandContext. If the command requires context, use AddCommand(Command, CommandImplementation)