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
Afficher le fichier Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Méthodes publiques

Méthode 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).

Méthodes protégées

Méthode Description
OnPropertyChanged ( string name ) : void

Raises the INotifyPropertyChanged.PropertyChanged event of the project.

Private Methods

Méthode Description
ActiveTasks_PropertyChanged ( object sender, System e ) : void

Method Details

ActivateModsMonitorVM() public méthode

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
Résultat Nexus.Client.BackgroundTasks

CanCancelTask() public méthode

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.
Résultat bool

CheckTaskStatus() public méthode

Check the task status.
public CheckTaskStatus ( string p_strTask ) : bool
p_strTask string
Résultat bool

OnPropertyChanged() protected méthode

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

RemoveAllTasks() public méthode

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

RemoveQueuedTask() public méthode

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

RemoveQueuedTaskUn() public méthode

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

RemoveQueuedTaskUpg() public méthode

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

RemoveQueuedTasks() public méthode

Removes all the queued tasks.
public RemoveQueuedTasks ( ) : void
Résultat void

RemoveSelectedTask() public méthode

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

RemoveSelectedTask() public méthode

Removes the selected task.
public RemoveSelectedTask ( string p_strTask ) : void
p_strTask string
Résultat void

RemoveSelectedTaskUn() public méthode

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

RemoveSelectedTaskUpg() public méthode

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

RemoveTask() public méthode

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

RemoveTaskUn() public méthode

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

RemoveTaskUpg() public méthode

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

RemoveUselessTask() public méthode

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.
Résultat void

RemoveUselessTaskUn() public méthode

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.
Résultat void

RemoveUselessTaskUpg() public méthode

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.
Résultat void