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