private void StopSimulation() { _isSimulating = false; _simulationTimer.Stop(); SimulationMatrix.Clean(); PlayButton.Image = Icons.play_32; ToolTip.SetToolTip(PlayButton, "Start Simulation"); }
private void StartSimulation() { _isSimulating = true; _currentClipIndex = 0; SimulationMatrix.Clean(); _simulationTimer.Interval = _simulationInterval / _simulationSpeed; _simulationTimer.Start(); PlayButton.Image = Icons.stop_32; ToolTip.SetToolTip(PlayButton, "Stop Simulation"); }
private void OnSimulationStep(object sender, EventArgs e) { if (_currentClipIndex >= _clips.Count) { _currentClipIndex = 0; } var currentClip = _clips.GetAt(_currentClipIndex); if (currentClip != null) { SimulationMatrix.SetContent(currentClip); _currentClipIndex++; } }