CadEditor.UtilsGui.reloadBlocksPanel C# (CSharp) Метод

reloadBlocksPanel() публичный статический Метод

public static reloadBlocksPanel ( System.Windows.Forms.FlowLayoutPanel blocksPanel, ImageList buttonsImages, int startIndex, int count ) : void
blocksPanel System.Windows.Forms.FlowLayoutPanel
buttonsImages System.Windows.Forms.ImageList
startIndex int
count int
Результат void
        public static void reloadBlocksPanel(FlowLayoutPanel blocksPanel, ImageList buttonsImages, int startIndex, int count)
        {
            for (int i = startIndex, controlIndex = 0; i < startIndex + count; i++, controlIndex++)
            {
                var but = (Button)blocksPanel.Controls[controlIndex];
                but.ImageList = buttonsImages;
                but.ImageIndex = i;
            }
        }