Пример #1
0
        private async void button1_Click(object sender, RoutedEventArgs e)
        {
            Chilkat.Http http = new Chilkat.Http();

            if (!checkUnlocked())
            {
                return;
            }

            http.ReceiveRate  += Http_ReceiveRate;
            http.ProgressInfo += Http_ProgressInfo;
            http.PercentDone  += Http_PercentDone;
            StorageFolder folder = ApplicationData.Current.LocalFolder;

            //textBox1.Text = folder.Path;

            http.VerboseLogging = true;

            bool success = await http.DownloadAsync("https://chilkatdownload.com/9.5.0.76/chilkatax-9.5.0-win32.zip", folder.Path + @"\chilkatAx.zip");

            textBox1.Text = http.LastErrorText;
        }