Beispiel #1
0
        /// <summary>
        /// Called when [download start].
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The <see cref="AssetDownloadProgressEventArgs"/> instance containing the event data.</param>
        private void OnDownloadProgressChanged(object sender, AssetDownloadProgressEventArgs e)
        {
            EventHandler <AssetDownloadProgressEventArgs> downloadProgressChanged = this.DownloadProgressChanged;

            if (downloadProgressChanged != null)
            {
                downloadProgressChanged(sender, e);
            }
        }
Beispiel #2
0
 /// <summary>
 /// Handles the DownloadProgressChanged event of the Media control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 private void Media_DownloadProgressChanged(object sender, AssetDownloadProgressEventArgs e)
 {
     this.OnDownloadProgressChanged(sender, e);
 }
Beispiel #3
0
 /// <summary>
 /// Publishes the <see cref="T:Microsoft.Practices.Composite.Presentation.Events.CompositePresentationEvent`1"/>.
 /// </summary>
 /// <param name="payload">Message to pass to the subscribers.</param>
 public override void Publish(AssetDownloadProgressEventArgs payload)
 {
     this.PublishCalled          = true;
     this.PublishArgumentPayload = payload;
 }