private void toggleVisualsToolStripMenuItem_Click(object sender, EventArgs e) { if (visForm.Visible) { visForm.Stop(); visForm.Close(); } else if (visForm.IsDisposed) { visForm = new Visualizations(); visForm.Show(); visForm.timer.Start(); } else { visForm.Show(); visForm.timer.Start(); } }