Ejemplo n.º 1
0
        private void executeSync_Click(object sender, RoutedEventArgs e)
        {
            resultsWindow.Text = "";
            stopwatch.Restart();

            Progress <ProgressModel> progress = new Progress <ProgressModel>();

            progress.ProgressChanged += Progress_ProgressChanged;
            DemoModel.RunDownloadSync(progress);
        }
Ejemplo n.º 2
0
        private async void executeAsync_Click(object sender, RoutedEventArgs e)
        {
            executeAsync.IsEnabled = false;
            resultsWindow.Text     = "";
            stopwatch.Restart();


            Progress <ProgressModel> progress = new Progress <ProgressModel>();

            progress.ProgressChanged += Progress_ProgressChanged;
            await DemoModel.RunDownloadParallel(progress);


            executeAsync.IsEnabled = true;
        }