private void SetPadSizes()
{
int y1 = this.canvasTopOffset;
int num1 = Height - this.canvasBottomOffset - this.canvasTopOffset;
int index = 0;
double num2 = 0.0;
foreach (Pad pad in this.pads)
{
num2 += (double)this.padsHeightArray[index];
int y2 = (int)((double)this.canvasTopOffset + (double)num1 * num2);
pad.SetCanvas(this.canvasLeftOffset, this.Width - this.canvasRightOffset, y1, y2);
++index;
y1 = y2;
}
}