/// <summary> /// Stops the pattern testing /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void button_Stop_Click(object sender, EventArgs e) { if (hashCreator != null && hashCreator.Active) { hashCreator.Stop(); lblGeneratePat.Text = "Stopped"; button_Pause.Text = "Pause"; // Just in case it is set to resume :) testPatternButton.Enabled = true; button_Pause.Enabled = false; button_Stop.Enabled = false; } }