C# Class Nexus.Client.ActivityMonitoring.UI.ActivityMonitorVM

This class encapsulates the data and the operations presented by UI elements that display activity monitoring.
Exibir arquivo Open project: NexusMods/NexusModManager-4.5

Public Methods

Method Description
ActivityMonitorVM ( ActivityMonitor p_amnActivityMonitor, ISettings p_setSettings ) : 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.

CanPauseActivity ( IBackgroundTask p_tskTask ) : bool

Determines if the given IBackgroundTask can be paused.

CanRemoveActivity ( IBackgroundTask p_tskTask ) : bool

Determines if the given IBackgroundTask can be removed.

CanResumeActivity ( IBackgroundTask p_tskTask ) : bool

Determines if the given IBackgroundTask can be resumed.

CancelTask ( IBackgroundTask p_tskTask ) : void

Cancels the given task.

PauseTask ( IBackgroundTask p_tskTask ) : void

Puases the given task.

RemoveTask ( IBackgroundTask p_tskTask ) : void

Removes the given task.

ResumeTask ( IBackgroundTask p_tskTask ) : void

Resumes the given task.

Method Details

ActivityMonitorVM() public method

A simple constructor that initializes the object with its dependencies.
public ActivityMonitorVM ( ActivityMonitor p_amnActivityMonitor, ISettings p_setSettings ) : Nexus.Client.BackgroundTasks
p_amnActivityMonitor ActivityMonitor The activity manager to use to manage the monitored activities.
p_setSettings ISettings The application and user settings.
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

CanPauseActivity() public method

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

CanRemoveActivity() public method

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

CanResumeActivity() public method

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

CancelTask() public method

Cancels the given task.
public CancelTask ( IBackgroundTask p_tskTask ) : void
p_tskTask IBackgroundTask The task to cancel.
return void

PauseTask() public method

Puases the given task.
public PauseTask ( IBackgroundTask p_tskTask ) : void
p_tskTask IBackgroundTask The task to pause.
return void

RemoveTask() public method

Removes the given task.
public RemoveTask ( IBackgroundTask p_tskTask ) : void
p_tskTask IBackgroundTask The task to remove.
return void

ResumeTask() public method

Resumes the given task.
public ResumeTask ( IBackgroundTask p_tskTask ) : void
p_tskTask IBackgroundTask The task to resume.
return void