C# Class Nexus.Client.Commands.Command

The base class for commands.
Inheritance: CommandBase
Afficher le fichier Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Protected Properties

Свойство Type Description
ExecuteMethod CommandExecuterMethod

Méthodes publiques

Méthode 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 méthode

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.
Résultat System

Command() public méthode

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.
Résultat System

Command() public méthode

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.
Résultat System

Execute() public méthode

Executes the command.
public Execute ( ) : void
Résultat void

Property Details

ExecuteMethod protected_oe property

The method that executes the command.
protected CommandExecuterMethod ExecuteMethod
Résultat CommandExecuterMethod