diff --git a/Form1.cs b/Form1.cs index 69d22b9..90720f1 100644 --- a/Form1.cs +++ b/Form1.cs @@ -22,14 +22,13 @@ private void btnAnalyse_Click(object sender, EventArgs e) { Results results = new(this); results.Show(); - Hide(); } else { ExistingResults.Show(); - Hide(); ExistingResults.btnRefresh_Click(null, null); } + Hide(); } else { diff --git a/Results.cs b/Results.cs index 98eab3b..eb7ba15 100644 --- a/Results.cs +++ b/Results.cs @@ -268,7 +268,10 @@ private void tbFilter_TextChanged(object sender, EventArgs e) private void btn_Back_Click(object sender, EventArgs e) { - waveOut.Stop(); + if(waveOut != null) + { + waveOut.Stop(); + } MyParentForm.ExistingResults = this; MyParentForm.Show(); this.Hide();