C# Class Nexus.Client.ModManagement.Scripting.XmlScript.UI.Controls.NodeEditors.ConditionEditorVM

This class encapsulates the data and the operations presented by UI elements that enable editing of an ICondition.
Inheritance: IViewModel
Afficher le fichier Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Méthodes publiques

Méthode Description
ConditionEditorVM ( CPLEditorVM p_edtEditorViewModel, CPLConverter p_ctrCPLConverter, ICondition p_cndCondition ) : System

A simple constructor that initializes the view model with its dependencies.

SaveCondition ( ) : void

Saves the changes that have been made to the ICondition.

Validate ( ) : bool

Validates the current state of the condition.

Méthodes protégées

Méthode Description
OnConditionSaved ( ) : void

Raises the ConditionSaved event.

OnConditionValidated ( ) : void

Raises the ConditionValidated event.

ValidateCondition ( ) : bool

Ensures that the condition is valid.

Method Details

ConditionEditorVM() public méthode

A simple constructor that initializes the view model with its dependencies.
public ConditionEditorVM ( CPLEditorVM p_edtEditorViewModel, CPLConverter p_ctrCPLConverter, ICondition p_cndCondition ) : System
p_edtEditorViewModel Nexus.Client.ModManagement.Scripting.XmlScript.CPL.Controls.CPLEditorVM The that encapsulates the data /// and operations for diaplying the CPL editor.
p_ctrCPLConverter Nexus.Client.ModManagement.Scripting.XmlScript.CPL.CPLConverter The CPL converter.
p_cndCondition ICondition The being edited.
Résultat System

OnConditionSaved() protected méthode

Raises the ConditionSaved event.
protected OnConditionSaved ( ) : void
Résultat void

OnConditionValidated() protected méthode

Raises the ConditionValidated event.
protected OnConditionValidated ( ) : void
Résultat void

SaveCondition() public méthode

Saves the changes that have been made to the ICondition.
public SaveCondition ( ) : void
Résultat void

Validate() public méthode

Validates the current state of the condition.
public Validate ( ) : bool
Résultat bool

ValidateCondition() protected méthode

Ensures that the condition is valid.
protected ValidateCondition ( ) : bool
Résultat bool