|
CommandManagerRegisterMainWindowCommand Method (Type, String, String, Object) |
The documentation is integral part of the weroSoft product documentation. This part is intended to be used by developers only.
Registers a command which is controlled by the command broker.
Namespace:
WeroSoft.Triton.Desktop
Assembly:
WeroSoft.Triton.Desktop.Library (in WeroSoft.Triton.Desktop.Library.dll) Version: 3.0 Pre-Release
Syntax public ICommand RegisterMainWindowCommand(
Type commandType,
string parameter,
string owner,
Object[] ctorParams
)
Parameters
- commandType
- Type: SystemType
Command type name to be registered. - parameter
- Type: SystemString
Parameter of the command. - owner
- Type: SystemString
The owner of the command. - ctorParams
- Type: SystemObject
Parameters containing objects in correct order and type to call the constructor of the command.
Return Value
Type:
ICommand[Missing <returns> documentation for "M:WeroSoft.Triton.Desktop.CommandManager.RegisterMainWindowCommand(System.Type,System.String,System.String,System.Object[])"]
Implements
ICommandManagerRegisterMainWindowCommand(Type, String, String, Object)Remarks
The command manager allows registering commands of any type command as long as they implement the
interface
ICommand. If the command is inheriting the base type
TritonManagedCommand,
it allows automatic usage of interactive usage of the command manager.
The command manager ensures that each command type is only registered once. The only
exception for this rule is to use different command parameter.
See Also