/// <summary> /// Executed when the User clicks the Cancel button. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnCancel_Click(object sender, EventArgs e) { // Cancel the current generation GeneratorManager.CancelGeneration(); // Close this Window this.Close(); }