C# Class Nexus.Client.ModAuthoring.UI.Controls.ModInfoVM

The view model representing an IModInfo being edited.
Inheritance: ObservableObject
Exibir arquivo Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Public Methods

Method Description
Commit ( ) : IModInfo

Commits the current values to the IModInfo being edited.

LoadInfoValues ( IModInfo p_mifModInfo ) : void

Loads the values from the given IModInfo into the control.

This does not change which IModInfo is being edited, but simply loads the values into the view model.

ModInfoVM ( IModInfo p_mifInfo ) : System

A simple constructor that initializes the view model with the IModInfo that it will represent.

Reset ( ) : void

This undoes any changes made to the values since the last commit.

Reset ( string p_strPropertyName ) : void

This undoes any changes made to the specified value since the last commit.

Validate ( ) : bool

Validate the IModInfo.

ValidateMachineVersion ( ) : bool

Ensures that the version is valid, if present.

ValidateModName ( ) : bool

Ensures that a mod name has been entered.

ValidateWebsite ( ) : bool

Ensures that the URL is valid, if present.

Method Details

Commit() public method

Commits the current values to the IModInfo being edited.
public Commit ( ) : IModInfo
return IModInfo

LoadInfoValues() public method

Loads the values from the given IModInfo into the control.
This does not change which IModInfo is being edited, but simply loads the values into the view model.
public LoadInfoValues ( IModInfo p_mifModInfo ) : void
p_mifModInfo IModInfo The whose values are to be /// loaded into the view model.
return void

ModInfoVM() public method

A simple constructor that initializes the view model with the IModInfo that it will represent.
public ModInfoVM ( IModInfo p_mifInfo ) : System
p_mifInfo IModInfo The being edited.
return System

Reset() public method

This undoes any changes made to the values since the last commit.
public Reset ( ) : void
return void

Reset() public method

This undoes any changes made to the specified value since the last commit.
public Reset ( string p_strPropertyName ) : void
p_strPropertyName string
return void

Validate() public method

Validate the IModInfo.
public Validate ( ) : bool
return bool

ValidateMachineVersion() public method

Ensures that the version is valid, if present.
public ValidateMachineVersion ( ) : bool
return bool

ValidateModName() public method

Ensures that a mod name has been entered.
public ValidateModName ( ) : bool
return bool

ValidateWebsite() public method

Ensures that the URL is valid, if present.
public ValidateWebsite ( ) : bool
return bool