/// <summary> /// Adds a download to the list of queued downloads. /// </summary> /// <param name="sender">Sender of the event.</param> /// <param name="e">Event args of the event.</param> private void DownloadManagerDownloadAdded(object sender, DownloadAddedEventArgs e) { e.DownloadItem.PropertyChanged += DownloadItemPropertyChanged; AddDownloadItemOnMainThread(e.DownloadItem); }
/// <summary> /// Raises the <see cref="DownloadAdded"/> event. /// </summary> /// <param name="e">Event args of the event.</param> private void RaiseDownloadAdded(DownloadAddedEventArgs e) { var handler = DownloadAdded; if (handler != null) { handler(this, e); } }