C# Class Channel9Downloader.ViewModels.DownloadsVM

Inheritance: Channel9Downloader.ViewModels.Framework.AdornerViewModel, IDownloadsVM
Show file Open project: MadCowDevelopment/Channel9Downloader

Public Methods

Method Description
Initialize ( Settings settings ) : void

Initializes this class.

Private Methods

Method Description
AddDownloadItemOnMainThread ( IDownloadItem downloadItem ) : void

Adds a DownloadItem on the main thread.

DownloadItemPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Removes and adds an item if the download state has changed. This is so that the sorting will be applied.

DownloadManagerDownloadAdded ( object sender, DownloadAddedEventArgs e ) : void

Adds a download to the list of queued downloads.

DownloadManagerDownloadRemoved ( object sender, DownloadRemovedEventArgs e ) : void

Removes a download from the list of queued downloads.

DownloadManagerDownloadingStarted ( object sender, System e ) : void

Sets the download status to true when downloads have started.

DownloadManagerDownloadingStopped ( object sender, System e ) : void

Sets the download status to false when downloads have stopped.

DownloadsVM ( IDownloadManager downloadManager ) : System.Collections.ObjectModel
InitializeDownloadManagerAsync ( ) : void

Initializes categories in the background.

OnCleanDownloads ( ) : void

Removes downloads that are finished or skipped.

OnStartDownloads ( ) : void

Starts the downloads.

OnStopDownloads ( ) : void

Stops the downloads.

OnUpdateDownloads ( ) : void

Updates the downloads in the background.

RemoveDownloadItemOnMainThread ( IDownloadItem downloadItem ) : void

Removes a DownloadItem on the main thread.

SettingsPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Handles the property changed event of settings.

StartUpdateTimer ( ) : void

Starts the update timer.

StopUpdateTimer ( ) : void

Stops the update timer.

UpdateDownloadsAsync ( ) : void

Updates the downloads.

Method Details

Initialize() public method

Initializes this class.
public Initialize ( Settings settings ) : void
settings Channel9Downloader.Entities.Settings The application settings.
return void