Пример #1
0
        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;
        }
Пример #2
0
        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;
        }