Beispiel #1
0
 protected void OnWorkDone(WorkerEventArgs args)
 {
     if (WorkDone != null) WorkDone(this, args);
 }
Beispiel #2
0
 static void Program_WorkDone(object sender, WorkerEventArgs e)
 {
     Console.WriteLine((sender as Worker).WorkerType() + " - Found " + (sender as TestWorker).Maximum + "! " + (sender as TestWorker).Count);
     if(workers.All(w => w.Finished))
     {
         Console.Write("Done!");
         Console.Read();
     }
 }