A basic implementation of the ICommand interface.
Represents a "command", typically a user action such as saving a file or executing a query.
Inheritors must implement the abstract method Execute()()().
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| CommandBase(String) |
Initializes a new instance of the CommandBase class.
The default value for Enabled is true, and ShortcutKeys is Keys.None.
| |
| ActiveFormAsEditor |
Attempts to convert the current host windows active form to IEditor.
| |
| ActiveFormAsSqlQueryEditor |
Attempts to convert the current host windows active form to IQueryEditor.
| |
| Enabled |
Gets a value indicating whether this ICommand is enabled.
| |
| Equals(Object) |
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.) | |
| Execute()()() |
Executes the command based on the current settings (abstract).
| |
| Finalize()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetHashCode()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| HostWindow |
Gets a reference to the host window.
| |
| MemberwiseClone()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| Name |
The name of the command, used in menus and buttons.
| |
| Services |
A reference to the application services to allow access to the other components.
| |
| Settings |
Gets a reference to the application settings.
| |
| ShortcutKeys |
Gets the menu shortcut keys for this command (e.g. Keys.F5).
| |
| ShortcutKeysText |
Gets the shortcut key text to be displayed as help.
| |
| SmallImage |
Gets the "small image" associated with this control (for use on buttons or menu items).
Use null (or Nothing in Visual Basic) if there is no image.
| |
| ToString()()() |
Returns a String that represents the current Object.
(Inherited from Object.) |