C# Class Nexus.Client.Commands.Command

The base class for commands.
Inheritance: CommandBase
Datei anzeigen Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Protected Properties

Property Type Description
ExecuteMethod CommandExecuterMethod

Public Methods

Method Description
Command ( string p_strName, string p_strDescription, CommandExecuterMethod p_eehExecute ) : System

A simple constructor that initializes the object with the given values.

Command ( string p_strName, string p_strDescription, CommandExecuterMethod p_eehExecute, bool p_booCanExecute ) : System

A simple constructor that initializes the object with the given values.

Command ( string p_strId, string p_strName, string p_strDescription, Image p_imgImage, CommandExecuterMethod p_eehExecute, bool p_booCanExecute ) : System

A simple constructor that initializes the object with the given values.

Execute ( ) : void

Executes the command.

Method Details

Command() public method

A simple constructor that initializes the object with the given values.
public Command ( string p_strName, string p_strDescription, CommandExecuterMethod p_eehExecute ) : System
p_strName string The name of the command.
p_strDescription string The description of the command.
p_eehExecute CommandExecuterMethod An that will be /// perform the command work.
return System

Command() public method

A simple constructor that initializes the object with the given values.
public Command ( string p_strName, string p_strDescription, CommandExecuterMethod p_eehExecute, bool p_booCanExecute ) : System
p_strName string The name of the command.
p_strDescription string The description of the command.
p_eehExecute CommandExecuterMethod An that will be /// perform the command work.
p_booCanExecute bool Whether or not the command can be executed.
return System

Command() public method

A simple constructor that initializes the object with the given values.
public Command ( string p_strId, string p_strName, string p_strDescription, Image p_imgImage, CommandExecuterMethod p_eehExecute, bool p_booCanExecute ) : System
p_strId string The id of the command
p_strName string The name of the command.
p_strDescription string The description of the command.
p_imgImage Image The image of the command.
p_eehExecute CommandExecuterMethod An that will be /// perform the command work.
p_booCanExecute bool Whether or not the command can be executed.
return System

Execute() public method

Executes the command.
public Execute ( ) : void
return void

Property Details

ExecuteMethod protected_oe property

The method that executes the command.
protected CommandExecuterMethod ExecuteMethod
return CommandExecuterMethod