private void DownloadBtn_Click(object sender, RoutedEventArgs e)
        {
            Downloader dl = new Downloader();

            string videoUrl = urlBox.Text;

            dl.videoDownload(dl.GetVideoSource(dl.GetId(videoUrl)), videoUrl, dl.videoInfo("//title", videoUrl));
        }
Esempio n. 2
0
        private void Main_Load(object sender, EventArgs e)
        {
            fileDownloader = new Downloader();

            fileDownloader.Success += new Downloader.onSuccessDownload(fileDownloader_Success);
            fileDownloader.Failed += new Downloader.onFailedDownload(fileDownloader_Failed);
            fileDownloader.Progress += new Downloader.onDownloadProgress(fileDownloader_Progress);

            this.DownloadBtn.Enabled = false;
            this.FileTypeBox.Enabled = false;
            this.FileName.Enabled = false;
            this.progressPanel.Visible = false;
        }