Chromatics_Updater.Updater_Form.ExecuteUpdate C# (CSharp) Method

ExecuteUpdate() public method

public ExecuteUpdate ( ) : void
return void
        void ExecuteUpdate()
        {
            string[] args = Environment.GetCommandLineArgs();
            string updatedFile = args[1];

            using (var client = new WebClient())
            {
                client.Headers.Add("User-Agent", "Mozilla/4.0 (compatible; MSIE 8.0)");
                client.DownloadFileCompleted += new AsyncCompletedEventHandler((sender, e) => Completed(sender, e, updatedFile));
                client.DownloadProgressChanged += new DownloadProgressChangedEventHandler((sender, e) => ProgressChanged(sender, e));
                client.DownloadFileAsync(new Uri("http://thejourneynetwork.net/chromatics/update/Chromatics.zip"), updatedFile + @"\Chromatics.zip");
            }
        }