C# Class Nexus.Client.ActivateModsMonitoring.UI.ActivateModsMonitorVM

This class encapsulates the data and the operations presented by UI elements that display Mod Activation monitoring.
Inheritance: INotifyPropertyChanged
Show file Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Public Methods

Method Description
ActivateModsMonitorVM ( ActivateModsMonitor p_amnActivateModsMonitor, ISettings p_setSettings, ModManager p_mmgModManager ) : Nexus.Client.BackgroundTasks

A simple constructor that initializes the object with its dependencies.

CanCancelTask ( IBackgroundTask p_tskTask ) : bool

Determines if the given IBackgroundTask can be cancelled.

CheckTaskStatus ( string p_strTask ) : bool

Check the task status.

RemoveAllTasks ( List p_tskRunning ) : void

Removes all the completed/failed tasks.

RemoveQueuedTask ( ModInstaller p_tskTask ) : void

Removes the given task.

RemoveQueuedTaskUn ( Nexus.Client.ModManagement.ModUninstaller p_tskTask ) : void

Removes the uninstalling given task.

RemoveQueuedTaskUpg ( ModUpgrader p_tskTask ) : void

Removes the upgrading given task.

RemoveQueuedTasks ( ) : void

Removes all the queued tasks.

RemoveSelectedTask ( ModInstaller p_tskTask ) : void

Removes the given task.

RemoveSelectedTask ( string p_strTask ) : void

Removes the selected task.

RemoveSelectedTaskUn ( Nexus.Client.ModManagement.ModUninstaller p_tskTask ) : void

Removes the uninstalling given task.

RemoveSelectedTaskUpg ( ModUpgrader p_tskTask ) : void

Removes the upgrading given task.

RemoveTask ( ModInstaller p_tskTask ) : void

Removes the given task.

RemoveTaskUn ( Nexus.Client.ModManagement.ModUninstaller p_tskTask ) : void

Removes the given task.

RemoveTaskUpg ( ModUpgrader p_tskTask ) : void

Removes the given task.

RemoveUselessTask ( ModInstaller p_tskTask ) : void

Removes the given task (the task is already in queue or running).

RemoveUselessTaskUn ( Nexus.Client.ModManagement.ModUninstaller p_tskTask ) : void

Removes the given uninstalling task (the task is already in queue or running).

RemoveUselessTaskUpg ( ModUpgrader p_tskTask ) : void

Removes the given upgrading task (the task is already in queue or running).

Protected Methods

Method Description
OnPropertyChanged ( string name ) : void

Raises the INotifyPropertyChanged.PropertyChanged event of the project.

Private Methods

Method Description
ActiveTasks_PropertyChanged ( object sender, System e ) : void

Method Details

ActivateModsMonitorVM() public method

A simple constructor that initializes the object with its dependencies.
public ActivateModsMonitorVM ( ActivateModsMonitor p_amnActivateModsMonitor, ISettings p_setSettings, ModManager p_mmgModManager ) : Nexus.Client.BackgroundTasks
p_amnActivateModsMonitor ActivateModsMonitor The Activate Mods manager to use to manage the monitored activities.
p_setSettings ISettings The application and user settings.
p_mmgModManager Nexus.Client.ModManagement.ModManager
return Nexus.Client.BackgroundTasks

CanCancelTask() public method

Determines if the given IBackgroundTask can be cancelled.
public CanCancelTask ( IBackgroundTask p_tskTask ) : bool
p_tskTask IBackgroundTask The task for which it is to be determined /// if it can be cancelled.
return bool

CheckTaskStatus() public method

Check the task status.
public CheckTaskStatus ( string p_strTask ) : bool
p_strTask string
return bool

OnPropertyChanged() protected method

Raises the INotifyPropertyChanged.PropertyChanged event of the project.
protected OnPropertyChanged ( string name ) : void
name string The property name.
return void

RemoveAllTasks() public method

Removes all the completed/failed tasks.
public RemoveAllTasks ( List p_tskRunning ) : void
p_tskRunning List
return void

RemoveQueuedTask() public method

Removes the given task.
public RemoveQueuedTask ( ModInstaller p_tskTask ) : void
p_tskTask Nexus.Client.ModManagement.ModInstaller BasicInstallTask task to remove.
return void

RemoveQueuedTaskUn() public method

Removes the uninstalling given task.
public RemoveQueuedTaskUn ( Nexus.Client.ModManagement.ModUninstaller p_tskTask ) : void
p_tskTask Nexus.Client.ModManagement.ModUninstaller BasicInstallTask task to remove.
return void

RemoveQueuedTaskUpg() public method

Removes the upgrading given task.
public RemoveQueuedTaskUpg ( ModUpgrader p_tskTask ) : void
p_tskTask Nexus.Client.ModManagement.ModUpgrader BasicInstallTask task to remove.
return void

RemoveQueuedTasks() public method

Removes all the queued tasks.
public RemoveQueuedTasks ( ) : void
return void

RemoveSelectedTask() public method

Removes the given task.
public RemoveSelectedTask ( ModInstaller p_tskTask ) : void
p_tskTask Nexus.Client.ModManagement.ModInstaller BasicInstallTask task to remove.
return void

RemoveSelectedTask() public method

Removes the selected task.
public RemoveSelectedTask ( string p_strTask ) : void
p_strTask string
return void

RemoveSelectedTaskUn() public method

Removes the uninstalling given task.
public RemoveSelectedTaskUn ( Nexus.Client.ModManagement.ModUninstaller p_tskTask ) : void
p_tskTask Nexus.Client.ModManagement.ModUninstaller BasicInstallTask task to remove.
return void

RemoveSelectedTaskUpg() public method

Removes the upgrading given task.
public RemoveSelectedTaskUpg ( ModUpgrader p_tskTask ) : void
p_tskTask Nexus.Client.ModManagement.ModUpgrader BasicInstallTask task to remove.
return void

RemoveTask() public method

Removes the given task.
public RemoveTask ( ModInstaller p_tskTask ) : void
p_tskTask Nexus.Client.ModManagement.ModInstaller BasicInstallTask task to remove.
return void

RemoveTaskUn() public method

Removes the given task.
public RemoveTaskUn ( Nexus.Client.ModManagement.ModUninstaller p_tskTask ) : void
p_tskTask Nexus.Client.ModManagement.ModUninstaller BasicInstallTask task to remove.
return void

RemoveTaskUpg() public method

Removes the given task.
public RemoveTaskUpg ( ModUpgrader p_tskTask ) : void
p_tskTask Nexus.Client.ModManagement.ModUpgrader BasicInstallTask task to remove.
return void

RemoveUselessTask() public method

Removes the given task (the task is already in queue or running).
public RemoveUselessTask ( ModInstaller p_tskTask ) : void
p_tskTask Nexus.Client.ModManagement.ModInstaller BasicInstallTask task to remove.
return void

RemoveUselessTaskUn() public method

Removes the given uninstalling task (the task is already in queue or running).
public RemoveUselessTaskUn ( Nexus.Client.ModManagement.ModUninstaller p_tskTask ) : void
p_tskTask Nexus.Client.ModManagement.ModUninstaller BasicInstallTask task to remove.
return void

RemoveUselessTaskUpg() public method

Removes the given upgrading task (the task is already in queue or running).
public RemoveUselessTaskUpg ( ModUpgrader p_tskTask ) : void
p_tskTask Nexus.Client.ModManagement.ModUpgrader BasicInstallTask task to remove.
return void