예제 #1
0
 private void DownloadsManager_DownloadStarted(Core.Models.MusixSongResult result)
 {
     UITaskFactory.StartNew(() =>
     {
         ActiveDownloadControl activeDownloadControl = new ActiveDownloadControl(result);
         FlowDownloads.Controls.Add(activeDownloadControl);
     });
 }
예제 #2
0
 public void ClientProgressCallback(int step, int stepMax, string status, MusixSongResult download)
 {
     UITaskFactory.StartNew(() =>
     {
         ActiveDownloadControl ACD = GetControl(download);
         if (ACD != null)
         {
             ACD.SetProgress(step, stepMax, status);
         }
     });
 }
예제 #3
0
 private void DownloadsManager_DownloadFinished(MusixSongResult result)
 {
     UITaskFactory.StartNew(() =>
     {
         ActiveDownloadControl adc = GetControl(result);
         if (adc != null)
         {
             FlowDownloads.Controls.Remove(adc);
             adc.Dispose();
         }
     });
 }