MaxCustomControls::CommandSystem::CommandMenuItem Class Reference


Detailed Description

Menu Item encapsulating an ExplorerFramework Command.

When clicked, executes the Command.

List of all members.

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.

Constructor & Destructor Documentation

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.


Member Function Documentation

void MaxCustomControls::CommandSystem::CommandMenuItem::ExecuteCommand ( Object  sender,
EventArgs  e 
) [inline]

Executes the command.

This handler is hooked into the menu item's Click event.

Parameters:
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.

Parameters:
disposing true if managed resources should be disposed; otherwise, false.

Property Documentation

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.


MaxCustomControls::CommandSystem::CommandMenuItem MaxCustomControls::CommandSystem::CommandMenuItem MaxCustomControls::CommandSystem::CommandMenuItem MaxCustomControls::CommandSystem::CommandMenuItem MaxCustomControls::CommandSystem::CommandMenuItem MaxCustomControls::CommandSystem::CommandMenuItem MaxCustomControls::CommandSystem::CommandMenuItem MaxCustomControls::CommandSystem::CommandMenuItem MaxCustomControls::CommandSystem::CommandMenuItem MaxCustomControls::CommandSystem::CommandMenuItem
MaxCustomControls::CommandSystem::CommandMenuItem MaxCustomControls::CommandSystem::CommandMenuItem MaxCustomControls::CommandSystem::CommandMenuItem MaxCustomControls::CommandSystem::CommandMenuItem MaxCustomControls::CommandSystem::CommandMenuItem MaxCustomControls::CommandSystem::CommandMenuItem MaxCustomControls::CommandSystem::CommandMenuItem MaxCustomControls::CommandSystem::CommandMenuItem MaxCustomControls::CommandSystem::CommandMenuItem MaxCustomControls::CommandSystem::CommandMenuItem