Example #1
0
 /// <summary>
 /// Pauses the pattern test
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void button_Pause_Click(object sender, EventArgs e)
 {
     if (hashCreator != null && hashCreator.Active)
     {
         if (hashCreator.Paused)
         {
             hashCreator.Resume();
             lblGeneratePat.Text = "Resuming ...";
             button_Pause.Text   = "Pause";
         }
         else
         {
             hashCreator.Pause();
             lblGeneratePat.Text = "Paused";
             button_Pause.Text   = "Resume";
         }
     }
 }