Ejemplo n.º 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();
     }
 }
Ejemplo n.º 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();
     }
 }