コード例 #1
0
 public GalleryGeneratorEngine(UserOptions options, Func<bool> cancellationPending, Action cancelWork)
     : base(options, cancellationPending, cancelWork)
 {
 }
コード例 #2
0
 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);
 }