Beispiel #1
0
        private void StartButton_Clicked(object sender, EventArgs e)
        {
            if (_isRunning)
            {
                ResetPositions();
            }

            ScatterResult = Scatter.PerformScatter(MathsHelpers.ToRadians(Rand.Next(-180, 181)));

            UpdateLabels();

            this.ElectronStartPos = ElectronNode.Position;

            _isRunning = true;
        }