Example #1
0
        public static void UpdateFiles(ProgressBar progressBar)
        {
            if (File.Exists(file))
            {
                File.Delete(file);
            }

            Downloader downloadInfoFile = new Downloader();

            downloadInfoFile.DownloadingInfoFile();

            UpdateChecker updateChecker = new UpdateChecker();

            updateChecker.CreatingListOfFiles();

            Downloader download = new Downloader(updateChecker.GetFiles, progressBar);

            download.DownloadingAllFiles();
        }