private void rearrangeBars()
 {
     EqualizerBars = new VisualizerBar[barsAmount];
     for (int i = 0; i < barsAmount; i++)
     {
         EqualizerBars[i]       = CreateNewBar();
         EqualizerBars[i].Width = barWidth;
     }
 }
        private void calculateBarProperties()
        {
            float spacing = DegreeValue / BarsAmount;

            for (int i = 0; i < BarsAmount; i++)
            {
                VisualizerBar bar = EqualizerBars[i];
                bar.Origin = Anchor.BottomCentre;

                float rotationValue = i * spacing;

                bar.Rotation = rotationValue;
                bar.Position = calculateBarPosition(rotationValue);
            }
        }