Inheritance: IDisposable
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }