Beispiel #1
0
        private void downloadButtonClick(object sender, RoutedEventArgs e)
        {
            downloadTextBlock.Visibility = Visibility.Hidden;
            downloadButton.IsEnabled     = false;

            try
            {
                download.downloadAllSearchResults(requestParameters, files, downloadDestinationTextBox.Text, fileNameTextBox.Text);
                downloadTextBlock.Visibility = Visibility.Visible;
            }
            catch (Exception exception)
            {
                MessageBox.Show(exception.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Warning);
            }

            downloadButton.IsEnabled = true;
        }