public GalleryGeneratorEngine(UserOptions options, Func<bool> cancellationPending, Action cancelWork) : base(options, cancellationPending, cancelWork) { }
private void SetAndRunMainJobInWorker(UserOptions options, bool workCounted) { ProgressTextBlock.Text = string.Empty; worker.DoWork += DoWork; worker.RunWorkerCompleted += WorkerCompleted; worker.WorkerSupportsCancellation = true; worker.WorkerReportsProgress = true; worker.ProgressChanged += ProgressChanged; WorkerProgressBar.IsIndeterminate = !workCounted; worker.RunWorkerAsync(options); }