예제 #1
0
 public void SchoofStatistics(int bit)
 {
     if (bit < 5)
     {
         return;
     }
     bits   = bit;
     primes = Maths.GetPrimes((int)Math.Pow(2, bit));
     index  = 6;
     data   = new DataTable("results");
     data.Columns.Add("prime");
     data.Columns.Add("time");
     bw = new BackgroundWorker();
     bw.WorkerSupportsCancellation = true;
     bw.DoWork             += new DoWorkEventHandler(Bw_DoWork);
     bw.RunWorkerCompleted += new RunWorkerCompletedEventHandler(Bw_RunWorkerCompleted);
     Iteration();
 }