Menu Item encapsulating an ExplorerFramework Command.
When clicked, executes the Command.
Public Member Functions |
|
CommandMenuItem () | |
Constructs the menu item. |
|
CommandMenuItem (Command command) | |
Constructs the menu item with a framework
Command object. |
|
void | ExecuteCommand (Object sender, EventArgs e) |
Executes the command. |
|
Protected Member Functions |
|
override void | Dispose (bool disposing) |
Clean up any resources being used. |
|
Properties |
|
override bool |
Enabled [get] |
Overridden to call the internal
Command.IsValid method. |
|
Command |
Command [get, set] |
The wrapped Command object. |
MaxCustomControls::CommandSystem::CommandMenuItem::CommandMenuItem | ( | ) | [inline] |
Constructs the menu item.
MaxCustomControls::CommandSystem::CommandMenuItem::CommandMenuItem | ( | Command | command | ) | [inline] |
Constructs the menu item with a framework Command object.
void MaxCustomControls::CommandSystem::CommandMenuItem::ExecuteCommand | ( | Object | sender, |
EventArgs | e | ||
) | [inline] |
Executes the command.
This handler is hooked into the menu item's Click event.
sender | The source of the event - "this" |
e | The arguments passed to handler - not used. |
override void MaxCustomControls::CommandSystem::CommandMenuItem::Dispose | ( | bool | disposing | ) | [inline, protected] |
Clean up any resources being used.
disposing | true if managed resources should be disposed; otherwise, false. |
override bool
MaxCustomControls::CommandSystem::CommandMenuItem::Enabled
[get] |
Overridden to call the internal Command.IsValid method.
The Enabled property is used to determine whether the menu item should be greyed out or not.
Command
MaxCustomControls::CommandSystem::CommandMenuItem::Command
[get, set] |
The wrapped Command object.