C# 클래스 Nexus.Client.DownloadMonitoring.UI.DownloadMonitorVM

This class encapsulates the data and the operations presented by UI elements that display Download monitoring.
상속: INotifyPropertyChanged
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5 1 사용 예제들

공개 메소드들

메소드 설명
CanCancelTask ( IBackgroundTask p_tskTask ) : bool

Determines if the given IBackgroundTask can be cancelled.

CanPauseDownload ( IBackgroundTask p_tskTask ) : bool

Determines if the given IBackgroundTask can be paused.

CanQueueDownload ( IBackgroundTask p_tskTask ) : bool

Determines if the given IBackgroundTask can be paused.

CanRemoveDownload ( IBackgroundTask p_tskTask ) : bool

Determines if the given IBackgroundTask can be removed.

CanResumeDownload ( IBackgroundTask p_tskTask ) : bool

Determines if the given IBackgroundTask can be resumed.

CancelTask ( IBackgroundTask p_tskTask ) : void

Cancels the given task.

DownloadMonitorVM ( DownloadMonitor p_amnDownloadMonitor, ISettings p_setSettings, ModManager p_mmgModManager, IModRepository p_mrpModRepository ) : Nexus.Client.BackgroundTasks

A simple constructor that initializes the object with its dependencies.

PauseTask ( IBackgroundTask p_tskTask ) : void

Puases the given task.

QueueTask ( IBackgroundTask p_tskTask ) : void

Puases the given task.

RemoveAllTasks ( ) : void

Removes all the completed/failed tasks.

RemoveTask ( AddModTask p_tskTask ) : void

Removes the given task.

ResumeAllTasks ( ) : void

Resumes all paused tasks.

ResumeTask ( IBackgroundTask p_tskTask ) : void

Resumes the given task.

보호된 메소드들

메소드 설명
OnPropertyChanged ( string name ) : void

Raises the INotifyPropertyChanged.PropertyChanged event of the project.

비공개 메소드들

메소드 설명
ActiveTasks_PropertyChanged ( object sender, System e ) : void
ModRepository_UserStatusUpdate ( object sender, System e ) : void

Handles the m_mrpModRepository.UserStatusUpdate event of the tasks list.

Updates the UI elements.

bgwWorker_DoWork ( object sender, DoWorkEventArgs e ) : void
bgwWorker_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void

메소드 상세

CanCancelTask() 공개 메소드

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.
리턴 bool

CanPauseDownload() 공개 메소드

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

CanQueueDownload() 공개 메소드

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

CanRemoveDownload() 공개 메소드

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

CanResumeDownload() 공개 메소드

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

CancelTask() 공개 메소드

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

DownloadMonitorVM() 공개 메소드

A simple constructor that initializes the object with its dependencies.
public DownloadMonitorVM ( DownloadMonitor p_amnDownloadMonitor, ISettings p_setSettings, ModManager p_mmgModManager, IModRepository p_mrpModRepository ) : Nexus.Client.BackgroundTasks
p_amnDownloadMonitor DownloadMonitor The Download manager to use to manage the monitored activities.
p_setSettings ISettings The application and user settings.
p_mmgModManager Nexus.Client.ModManagement.ModManager
p_mrpModRepository IModRepository
리턴 Nexus.Client.BackgroundTasks

OnPropertyChanged() 보호된 메소드

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

PauseTask() 공개 메소드

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

QueueTask() 공개 메소드

Puases the given task.
public QueueTask ( IBackgroundTask p_tskTask ) : void
p_tskTask IBackgroundTask The task to pause.
리턴 void

RemoveAllTasks() 공개 메소드

Removes all the completed/failed tasks.
public RemoveAllTasks ( ) : void
리턴 void

RemoveTask() 공개 메소드

Removes the given task.
public RemoveTask ( AddModTask p_tskTask ) : void
p_tskTask Nexus.Client.ModManagement.AddModTask IBackgroundTask task to remove.
리턴 void

ResumeAllTasks() 공개 메소드

Resumes all paused tasks.
public ResumeAllTasks ( ) : void
리턴 void

ResumeTask() 공개 메소드

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