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

This class encapsulates the data and the operations presented by UI elements that display a ConditionallyInstalledFileSet order editor.
Inheritance: IViewModel
Datei anzeigen Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Public Methods

Method Description
ConditionallyInstalledFileSetOrderEditorVM ( IList p_lstConditionallyInstalledFileSets, CPLConverter p_cvtConverter ) : System.Collections.Generic

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

GetConditionString ( ICondition p_cndCondition ) : string

Converts the given ICondition to a string representation.

MovePattern ( Int32 p_intOldIndex, Int32 p_intNewIndex ) : void

Moves the pattern at the specified old index to the new index.

Validate ( ) : bool

Validates the current ConditionallyInstalledFileSet order.

Method Details

ConditionallyInstalledFileSetOrderEditorVM() public method

A simple constructor that initializes the view model with its dependencies.
public ConditionallyInstalledFileSetOrderEditorVM ( IList p_lstConditionallyInstalledFileSets, CPLConverter p_cvtConverter ) : System.Collections.Generic
p_lstConditionallyInstalledFileSets IList The list of s whose order /// is being edited.
p_cvtConverter Nexus.Client.ModManagement.Scripting.XmlScript.CPL.CPLConverter The to use to convert the 's /// conditions to a string.
return System.Collections.Generic

GetConditionString() public method

Converts the given ICondition to a string representation.
public GetConditionString ( ICondition p_cndCondition ) : string
p_cndCondition ICondition The to convert.
return string

MovePattern() public method

Moves the pattern at the specified old index to the new index.
public MovePattern ( Int32 p_intOldIndex, Int32 p_intNewIndex ) : void
p_intOldIndex System.Int32 The index of the pattern to move.
p_intNewIndex System.Int32 The new index to which to move the pattern.
return void

Validate() public method

Validates the current ConditionallyInstalledFileSet order.
public Validate ( ) : bool
return bool