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
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5 1 사용 예제들

공개 메소드들

메소드 설명
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