C# Class Nexus.Client.MainFormVM

This class encapsulates the data and the operations presented by UI elements that display the main form.
Show file Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Public Properties

Property Type Description
ConfirmCloseAfterGameLaunch ConfirmRememberedActionMethod
ConfirmUpdaterAction ConfirmActionMethod

Public Methods

Method Description
MainFormVM ( IEnvironmentInfo p_eifEnvironmentInfo, GameModeRegistry p_gmrInstalledGames, IGameMode p_gmdGameMode, IModRepository p_mrpModRepository, DownloadMonitor p_dmtMonitor, ActivateModsMonitor p_ammMonitor, UpdateManager p_umgUpdateManager, ModManager p_mmgModManager, IPluginManager p_pmgPluginManager ) : System

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

SortPlugins ( ) : void

Automatically sorts the plugin list.

ViewIsShown ( ) : void

Notifies the view model that the view has been displayed.

Private Methods

Method Description
ChangeGameMode ( string p_strGameModeId ) : void

Requests a game mode change.

GameLauncher_GameLaunching ( object sender, CancelEventArgs e ) : void

Handles the IGameLauncher.GameLaunching event of the game launcher.

This displays, as appropriate, a message asking if the user wants the application to close after game launch.

Logout ( ) : void

Logs out of all mod repositories.

UpdateProgramme ( ) : void

Updates the programme.

UpdateProgramme ( bool p_booIsAutoCheck ) : void

Updates the programme.

Method Details

MainFormVM() public method

A simple constructor that initializes the object with the given dependencies.
public MainFormVM ( IEnvironmentInfo p_eifEnvironmentInfo, GameModeRegistry p_gmrInstalledGames, IGameMode p_gmdGameMode, IModRepository p_mrpModRepository, DownloadMonitor p_dmtMonitor, ActivateModsMonitor p_ammMonitor, UpdateManager p_umgUpdateManager, ModManager p_mmgModManager, IPluginManager p_pmgPluginManager ) : System
p_eifEnvironmentInfo IEnvironmentInfo The application's envrionment info.
p_gmrInstalledGames Nexus.Client.Games.GameModeRegistry The registry of insalled games.
p_gmdGameMode IGameMode The game mode currently being managed.
p_mrpModRepository IModRepository The repository we are logging in to.
p_dmtMonitor Nexus.Client.DownloadMonitoring.DownloadMonitor The download monitor to use to track task progress.
p_ammMonitor Nexus.Client.ActivateModsMonitoring.ActivateModsMonitor
p_umgUpdateManager Nexus.Client.Updating.UpdateManager The update manager to use to perform updates.
p_mmgModManager Nexus.Client.ModManagement.ModManager The to use to manage mods.
p_pmgPluginManager IPluginManager The to use to manage plugins.
return System

SortPlugins() public method

Automatically sorts the plugin list.
public SortPlugins ( ) : void
return void

ViewIsShown() public method

Notifies the view model that the view has been displayed.
public ViewIsShown ( ) : void
return void

Property Details

ConfirmCloseAfterGameLaunch public property

Called when an updater's action needs to be confirmed.
public ConfirmRememberedActionMethod ConfirmCloseAfterGameLaunch
return ConfirmRememberedActionMethod

ConfirmUpdaterAction public property

Called when an updater's action needs to be confirmed.
public ConfirmActionMethod ConfirmUpdaterAction
return ConfirmActionMethod