Exemple #1
0
 private Manager()
 {
     ConfigurationManager = new ConfigurationManager();
     InstanceManager = new InstanceManager();
     VersionManager = new VersionManager();
     DownloadManager = new DownloadManager();
 }
        public DownloadThread(DownloadManager downloadManager)
        {
            IsRunning = true;
            _downloadManager = downloadManager;
            _thread = new Thread(RunThread);

            _client = new WebClient();
            _client.DownloadProgressChanged += DownloadProgressChanged;
            _client.DownloadFileCompleted += DownloadFileCompleted;

            _thread.Start();
        }