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

This class encapsulates the data and the operations presented by UI elements that enable editing of a list of InstallableFiles.
Inheritance: IViewModel
Exibir arquivo Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Public Methods

Method Description
FileListEditorVM ( InstallableFileEditorVM p_femInstallableFileEditorVM, IList p_lstFiles ) : System

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

Validate ( ) : bool

Validates the current state edited list.

Private Methods

Method Description
AddInstallableFile ( InstallableFile p_iflArgument ) : void

Passes the a new InstallableFile to the editor view model to be edited.

DeleteInstallableFile ( InstallableFile p_iflArgument ) : void

Deletes the given InstallableFile from the list.

EditInstallableFile ( InstallableFile p_iflArgument ) : void

Passes the given InstallableFile to the editor view model to be edited.

InstallableFileSaved ( object sender, EventArgs e ) : void

Handles the InstallableFileEditorVM.InstallableFileSaved event of the InstallableFile editor view model.

This raises the FileAdded or FileEdited event, as appropriate.

Method Details

FileListEditorVM() public method

A simple constructor that initializes the view model with its dependencies.
public FileListEditorVM ( InstallableFileEditorVM p_femInstallableFileEditorVM, IList p_lstFiles ) : System
p_femInstallableFileEditorVM InstallableFileEditorVM The that encapsulates the data /// and operations for editing an .
p_lstFiles IList The list of s that is being edited.
return System

Validate() public method

Validates the current state edited list.
public Validate ( ) : bool
return bool