Exemple #1
0
 private void initializeToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (!drawingSurfaceInitialized)
         InitializeDrawingSurface();
     DestroyAll();
     listView1.Visible = false;
     CS = CurrentSimulation.SteeringBehaviours;
     sBC = new SBC(g, mainPanel.ClientSize, steeringBehaviour, int.Parse(numberOfCars.Text));
     Start();
 }
Exemple #2
0
 private void DestroyAll()
 {
     leaveTrailToolStripMenuItem.Checked = false;
     leaveTrail = false;
     timer1.Enabled = false;
     Cosmos.isRunning = false;
     eStringRunning = false;
     listView1.Visible = false;
     sBC = null;
     world = null;
 }