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

Show file Open project: NexusMods/NexusModManager-4.5

Private Properties

Property Type Description
EditCommand_Executed void
FileAdded void
FileDeleted void
FileEdited void
GetSelectedInstallableFile InstallableFile
InitializeComponent void
lvwInstallableFiles_Resize void
lvwInstallableFiles_SelectedIndexChanged void

Public Methods

Method Description
FileListEditor ( ) : System

The default constructor.

FileListEditor ( FileListEditorVM p_vmlViewModel ) : System

A simple constructor the initializes the object with the given dependencies.

GetViewModel ( ) : IViewModel

Gets the view model of the editor.

Protected Methods

Method Description
AddInstallableFile ( InstallableFile p_iflFile ) : void

Adds the given InstallableFile to the list view.

Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
EditCommand_Executed ( object p_objCommand, EventArgs p_eeaArguments ) : void

Hanldes the Command{T}.Executed event of the edit command.

This transfer focus to the InstallableFile editor.

FileAdded ( object sender, EventArgs e ) : void

Handles the FileListEditorVM.FileAdded event of the view model.

This addes the newly added InstallableFile to the list view.

FileDeleted ( object sender, EventArgs e ) : void

Handles the FileListEditorVM.FileDeleted event of the view model.

This removed the delete InstallableFile from the list view.

FileEdited ( object sender, EventArgs e ) : void

Handles the FileListEditorVM.FileEdited event of the view model.

This updates the edited InstallableFile in the list view.

GetSelectedInstallableFile ( ) : InstallableFile

This gets the InstallableFile currently selected in the view.

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

lvwInstallableFiles_Resize ( object sender, EventArgs e ) : void

Handles the Control.Resize event of the list view.

This resizes the columns to fill the list view.

lvwInstallableFiles_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the ListView.SelectedIndexChanged event of the list view.

This updates the enable states of the commands.

Method Details

AddInstallableFile() protected method

Adds the given InstallableFile to the list view.
protected AddInstallableFile ( InstallableFile p_iflFile ) : void
p_iflFile InstallableFile The to add to the list view.
return void

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

FileListEditor() public method

The default constructor.
public FileListEditor ( ) : System
return System

FileListEditor() public method

A simple constructor the initializes the object with the given dependencies.
public FileListEditor ( FileListEditorVM p_vmlViewModel ) : System
p_vmlViewModel FileListEditorVM The view model that provides the data and operations for this view.
return System

GetViewModel() public method

Gets the view model of the editor.
public GetViewModel ( ) : IViewModel
return IViewModel