C# Class Nexus.Client.Games.Settings.RequiredDirectoriesControlVM

This class encapsulates the data and the operations presented by UI elements that allow the selection of required directories.
Inheritance: ObservableObject
Afficher le fichier Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Méthodes publiques

Méthode Description
LoadSettings ( ) : void

Loads the user's settings into the control.

RequiredDirectoriesControlVM ( IEnvironmentInfo p_eifEnvironmentInfo, IGameModeDescriptor p_gmdGameModeInfo ) : System

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

RequiredDirectoriesControlVM ( IEnvironmentInfo p_eifEnvironmentInfo, IGameModeDescriptor p_gmdGameModeInfo, bool p_booUseAdditionalChecks ) : System

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

SaveRegistry ( string game, string modDirectory, string installInfoDirectory ) : void

Check the correct path on the Registry.

SaveSettings ( bool p_booDelaySettings ) : void

Persists the settings on this control.

ValidateSettings ( ) : bool

Validates the settings on this control.

Méthodes protégées

Méthode Description
CheckCleanInstallInfoFolder ( string p_strInstallInfo ) : bool

Checks whether the selected Mods folder is clean.

CheckCleanModsFolder ( string p_strMods ) : bool

Checks whether the selected Mods folder is clean.

ValidateDirectory ( string p_strPath, string p_strPathName, string p_strProperty ) : bool

Validates the specified directory.

ValidateDirectory ( string p_strModPath, string p_strModPathName, string p_strModProperty, string p_strInstallPath, string p_strInstallPathName, string p_strInstallProperty, string p_strToolPath, string p_strToolPathName, string p_strToolProperty ) : bool

Checks if the specified directory are equals.

ValidateInstallInfoDirectory ( ) : bool

Validates the selected install info directory.

ValidateModDirectory ( ) : bool

Validates the selected mod directory.

Method Details

CheckCleanInstallInfoFolder() protected méthode

Checks whether the selected Mods folder is clean.
protected CheckCleanInstallInfoFolder ( string p_strInstallInfo ) : bool
p_strInstallInfo string
Résultat bool

CheckCleanModsFolder() protected méthode

Checks whether the selected Mods folder is clean.
protected CheckCleanModsFolder ( string p_strMods ) : bool
p_strMods string
Résultat bool

LoadSettings() public méthode

Loads the user's settings into the control.
public LoadSettings ( ) : void
Résultat void

RequiredDirectoriesControlVM() public méthode

A simple constructor that initializes the object with the given dependencies.
public RequiredDirectoriesControlVM ( IEnvironmentInfo p_eifEnvironmentInfo, IGameModeDescriptor p_gmdGameModeInfo ) : System
p_eifEnvironmentInfo IEnvironmentInfo The application's envrionment info.
p_gmdGameModeInfo IGameModeDescriptor The descriptor of the current game mode.
Résultat System

RequiredDirectoriesControlVM() public méthode

A simple constructor that initializes the object with the given dependencies.
public RequiredDirectoriesControlVM ( IEnvironmentInfo p_eifEnvironmentInfo, IGameModeDescriptor p_gmdGameModeInfo, bool p_booUseAdditionalChecks ) : System
p_eifEnvironmentInfo IEnvironmentInfo The application's envrionment info.
p_gmdGameModeInfo IGameModeDescriptor The descriptor of the current game mode.
p_booUseAdditionalChecks bool Whether to use additional checks to validate the folders.
Résultat System

SaveRegistry() public méthode

Check the correct path on the Registry.
public SaveRegistry ( string game, string modDirectory, string installInfoDirectory ) : void
game string The game selected.
modDirectory string The Mods path selected.
installInfoDirectory string The Install Info path selected.
Résultat void

SaveSettings() public méthode

Persists the settings on this control.
public SaveSettings ( bool p_booDelaySettings ) : void
p_booDelaySettings bool Whether the settings should be delayed until the next application restart.
Résultat void

ValidateDirectory() protected méthode

Validates the specified directory.
protected ValidateDirectory ( string p_strPath, string p_strPathName, string p_strProperty ) : bool
p_strPath string
p_strPathName string
p_strProperty string
Résultat bool

ValidateDirectory() protected méthode

Checks if the specified directory are equals.
protected ValidateDirectory ( string p_strModPath, string p_strModPathName, string p_strModProperty, string p_strInstallPath, string p_strInstallPathName, string p_strInstallProperty, string p_strToolPath, string p_strToolPathName, string p_strToolProperty ) : bool
p_strModPath string
p_strModPathName string
p_strModProperty string
p_strInstallPath string
p_strInstallPathName string
p_strInstallProperty string
p_strToolPath string
p_strToolPathName string
p_strToolProperty string
Résultat bool

ValidateInstallInfoDirectory() protected méthode

Validates the selected install info directory.
protected ValidateInstallInfoDirectory ( ) : bool
Résultat bool

ValidateModDirectory() protected méthode

Validates the selected mod directory.
protected ValidateModDirectory ( ) : bool
Résultat bool

ValidateSettings() public méthode

Validates the settings on this control.
public ValidateSettings ( ) : bool
Résultat bool