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

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

Méthodes publiques

Méthode 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 méthode

Commits the current values to the IModInfo being edited.
public Commit ( ) : IModInfo
Résultat IModInfo

LoadInfoValues() public méthode

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.
Résultat void

ModInfoVM() public méthode

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.
Résultat System

Reset() public méthode

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

Reset() public méthode

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

Validate() public méthode

Validate the IModInfo.
public Validate ( ) : bool
Résultat bool

ValidateMachineVersion() public méthode

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

ValidateModName() public méthode

Ensures that a mod name has been entered.
public ValidateModName ( ) : bool
Résultat bool

ValidateWebsite() public méthode

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