private void ShowAllButton_Click(object sender, RoutedEventArgs e)
        {
            ClearPoints();
            PrepareCanvas();
            PrepareSmallSpace();
            Points = GenerateRandomData.GenerateRandomPoints(N, PointRadius);
            DrawPoints();
            AllTrajectories = GenerateRandomData.GenerateRandomTrajectories(1 - Limit, Points);

            for (int i = step; i < AllTrajectories.Count; i++)
            {
                DrawGeneratedTrajectories(i);
            }
        }
        private void StepByStepButton_Click(object sender, RoutedEventArgs e)
        {
            ClearPoints();
            PrepareCanvas();
            PrepareSmallSpace();
            if (Points == null)
            {
                Points = GenerateRandomData.GenerateRandomPoints(N, PointRadius);
            }
            DrawPoints();
            if (AllTrajectories == null)
            {
                AllTrajectories = GenerateRandomData.GenerateRandomTrajectories(1 - Limit, Points);
            }

            DrawGeneratedTrajectories(step);
            step++;
        }