Forex_Strategy_Builder.Strategy_Layout.PnlSlotCalculateTotalHeight C# (CSharp) Method

PnlSlotCalculateTotalHeight() private method

Calculates the total height of the Panel Slot
private PnlSlotCalculateTotalHeight ( int width ) : int
width int
return int
        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;
        }