int PnlSlotCalculateTotalHeight(int width)
{
int totalHeight = 0;
for (int iSlot = 0; iSlot < slots; iSlot++)
totalHeight += space + PnlSlotCalculateHeight(iSlot, width);
if (showAddSlotButtons)
totalHeight += 2 * btnAddCloseFilter.Height + space;
totalHeight += space + PnlPropertiesCalculateHeight(width);
return totalHeight;
}