Ejemplo n.º 1
0
 private void backgroundWorker_DoWork(object sender, DoWorkEventArgs e)
 {
     while (!backgroundWorker.CancellationPending)
     {
         grid.Advance();
         DrawGrid();
         System.GC.Collect();
     }
 }