Exemple #1
0
 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();
     }
 }
Exemple #2
0
 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();
     }
 }