Inheritance: IDisposable
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            // Start a background thread:
            Action background = BackgroundTask;

            background.BeginInvoke(null, null);

            // Set up the watcher:
            this.ProgressWatcher                  = new ProgressWatcher();
            this.ProgressWatcher.TaskKey          = "Primary";
            this.ProgressWatcher.ProgressChanged += ProgressWatcher_ProgressChanged;
        }
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            // Start a background thread:
            Action background = BackgroundTask;
            background.BeginInvoke(null, null);

            // Set up the watcher:
            this.ProgressWatcher = new ProgressWatcher();
            this.ProgressWatcher.TaskKey = "Primary";
            this.ProgressWatcher.ProgressChanged += ProgressWatcher_ProgressChanged;
        }