Beispiel #1
0
 private void buttonStop_Click(object sender, EventArgs e)
 {
     if (dm == null)
     {
         return;
     }
     dm.Stop();
     dm = null;
 }
Beispiel #2
0
 private void buttonDownload_Click(object sender, EventArgs e)
 {
     video = new Video(textBoxUrl.Text);
     video.saveName = textBoxSaveName.Text;
     video.path = textBoxPath.Text;
     XML.parserVideo(video);
     Console.WriteLine("hello");
     dm = new DownloadManager(this, video);
     dm.Start();
 }