C# Класс 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.
Наследование: IViewModel
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
OnConditionSaved ( ) : void

Raises the ConditionSaved event.

OnConditionValidated ( ) : void

Raises the ConditionValidated event.

ValidateCondition ( ) : bool

Ensures that the condition is valid.

Описание методов

ConditionEditorVM() публичный Метод

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.
Результат System

OnConditionSaved() защищенный Метод

Raises the ConditionSaved event.
protected OnConditionSaved ( ) : void
Результат void

OnConditionValidated() защищенный Метод

Raises the ConditionValidated event.
protected OnConditionValidated ( ) : void
Результат void

SaveCondition() публичный Метод

Saves the changes that have been made to the ICondition.
public SaveCondition ( ) : void
Результат void

Validate() публичный Метод

Validates the current state of the condition.
public Validate ( ) : bool
Результат bool

ValidateCondition() защищенный Метод

Ensures that the condition is valid.
protected ValidateCondition ( ) : bool
Результат bool