private void GraphsForm_Activated(object sender, EventArgs e) { if (activationFlag == false) { return; } SearchProgress.Show(); this.Enabled = false; performHarmonySearch(); plotChart(); SearchProgress.Hide(); this.Enabled = true; activationFlag = false; }
private void RerunButton_Click(object sender, EventArgs e) { SearchProgress.Show(); this.Enabled = false; performHarmonySearch(); numericsTab.Controls.RemoveByKey("aestheticsLabel"); for (int k = 1; k <= totalNotes; k++) { numericsTab.Controls.RemoveByKey("x" + k + "Label"); notesTab.Controls.RemoveByKey("x" + k + "Chart"); } plotChart(); SearchProgress.Hide(); this.Enabled = true; }