C# Класс Nexus.Client.ModAuthoring.UI.Controls.ModInfoVM

The view model representing an IModInfo being edited.
Наследование: ObservableObject
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

Commit() публичный Метод

Commits the current values to the IModInfo being edited.
public Commit ( ) : IModInfo
Результат IModInfo

LoadInfoValues() публичный Метод

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.
Результат void

ModInfoVM() публичный Метод

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.
Результат System

Reset() публичный Метод

This undoes any changes made to the values since the last commit.
public Reset ( ) : void
Результат void

Reset() публичный Метод

This undoes any changes made to the specified value since the last commit.
public Reset ( string p_strPropertyName ) : void
p_strPropertyName string
Результат void

Validate() публичный Метод

Validate the IModInfo.
public Validate ( ) : bool
Результат bool

ValidateMachineVersion() публичный Метод

Ensures that the version is valid, if present.
public ValidateMachineVersion ( ) : bool
Результат bool

ValidateModName() публичный Метод

Ensures that a mod name has been entered.
public ValidateModName ( ) : bool
Результат bool

ValidateWebsite() публичный Метод

Ensures that the URL is valid, if present.
public ValidateWebsite ( ) : bool
Результат bool