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

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

            _thread.Start();
        }