public Form1() { InitializeComponent(); GetAllPictureboxes(panel1); AddDragDropToPictureBoxes(); Simulation = new Simulation(); }
public TrafficSimulatorGUI() { InitializeComponent(); GetAllPictureboxes(panel1); AddDragDropToPictureBoxes(); Simulation = new Simulation(); isLocked = false; // btnPlay.Enabled = false; btnToggleLight.Enabled = false; }
public void Clear() { Unlock(); //enableNum(); Simulation = new Simulation(); //Making a new instance of the circuit object ClearAll(); this.Invalidate(); }