Пример #1
0
        public void AddDownload(DownloadData download)
        {
            DownloadHandler handler = new DownloadHandler()
            {
                webDownload = new HttpWebDownload(download.url, download.path, this.behaviour),
                callback    = download.callback
            };

            downloaders.Enqueue(handler);

            StartDownload();
        }
Пример #2
0
        public void AddDownloader(DownloadResetfulData resetfulData)
        {
            DownloadHandler handler = new DownloadHandler()
            {
                webDownload = new HttpWebDownload(resetfulData.url, resetfulData.savePath, resetfulData.fileName, this.behaviour),
                callback    = resetfulData.callback
            };

            downloaders.Enqueue(handler);

            IsNetError = false;

            StartDownload();
        }