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
ファイルを表示 Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method 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 method

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

CheckCleanModsFolder() protected method

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

LoadSettings() public method

Loads the user's settings into the control.
public LoadSettings ( ) : void
return void

RequiredDirectoriesControlVM() public method

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.
return System

RequiredDirectoriesControlVM() public method

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.
return System

SaveRegistry() public method

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.
return void

SaveSettings() public method

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.
return void

ValidateDirectory() protected method

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
return bool

ValidateDirectory() protected method

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
return bool

ValidateInstallInfoDirectory() protected method

Validates the selected install info directory.
protected ValidateInstallInfoDirectory ( ) : bool
return bool

ValidateModDirectory() protected method

Validates the selected mod directory.
protected ValidateModDirectory ( ) : bool
return bool

ValidateSettings() public method

Validates the settings on this control.
public ValidateSettings ( ) : bool
return bool