private void FillPadsHeightArray()
{
if (this.padsHeightArray.Count == 0)
{
this.padsHeightArray.Add((object)1.0);
}
else
{
this.padsHeightArray.Add((object)0.0);
int count = this.padsHeightArray.Count;
if (this.volumePadShown)
--count;
this.padsHeightArray[0] = (object)(3.0 / (double)(count + 2));
for (int i = 1; i < this.padsHeightArray.Count; ++i)
{
if (this.volumePadShown && i == 1)
{
this.padsHeightArray[1] = (object)((double)this.padsHeightArray[0] / 6.0);
this.padsHeightArray[0] = (object)((double)this.padsHeightArray[1] * 5.0);
}
else
this.padsHeightArray[i] = (object)(1.0 / (double)(count + 2));
}
}
}