Beispiel #1
0
        public static void QueueDownload(TagDownload tagDownload)
        {
            DownloadJob downloadJob = new DownloadJob(tagDownload);

            Thread downloadThread = new Thread(downloadJob.Execute);

            downloadThread.Start();
        }
Beispiel #2
0
        private void ButtonDownload_Click(object sender, EventArgs e)
        {
            TagMeta tagMeta = new TagMeta();

            tagMeta.Name   = this.TextName.Text;
            tagMeta.Album  = this.TextAlbum.Text;
            tagMeta.Artist = this.TextArtist.Text;

            TagDownload tagDownload = new TagDownload();

            tagDownload.TagMeta    = tagMeta;
            tagDownload.YoutubeUri = this.TextYoutubeUri.Text;

            TagFile tagFile = new TagFile();

            tagFile.TagMeta = tagMeta;

            tagDownload.TagFile = tagFile;

            Context.QueueDownload(tagDownload);

            this.Close();
        }
Beispiel #3
0
 public DownloadJob(TagDownload tagDownload)
 {
     this.TagDownload = tagDownload;
 }