Пример #1
0
 void PhotoOrganizer_FileFinished(object sender, PhotoEventArgs e)
 {
     Task.Factory.StartNew(() =>
     {
         this.ProcessedCount++;
     }, CancellationToken.None, TaskCreationOptions.None, this._foregroundTaskScheduler)
     .Wait();
 }
Пример #2
0
 void PhotoOrganizer_FileStarted(object sender, PhotoEventArgs e)
 {
     Task.Factory.StartNew(() =>
     {
         this.CurrentFile = e.FileName;
     }, CancellationToken.None, TaskCreationOptions.None, this._foregroundTaskScheduler)
     .Wait();
 }