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
Show file Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method 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 method

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.
return System

OnConditionSaved() protected method

Raises the ConditionSaved event.
protected OnConditionSaved ( ) : void
return void

OnConditionValidated() protected method

Raises the ConditionValidated event.
protected OnConditionValidated ( ) : void
return void

SaveCondition() public method

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

Validate() public method

Validates the current state of the condition.
public Validate ( ) : bool
return bool

ValidateCondition() protected method

Ensures that the condition is valid.
protected ValidateCondition ( ) : bool
return bool