Ejemplo n.º 1
0
        public void DeletePreview(int index)
        {
            FrameButton toDelete = previewButtons[index];

            Controls.Remove(toDelete);
            previewButtons.RemoveAt(index);
            toDelete.Dispose();
            packPreviewButtons();
        }
Ejemplo n.º 2
0
        public void AddNewPreview(int index)
        {
            FrameButton newButton = new FrameButton(index);

            previewButtons.Add(newButton);

            Controls.Add(newButton);
            if (index == 0)
            {
                newButton.Location = new Point(5, 0);
            }
            else
            {
                newButton.Location = new Point(previewButtons[index - 1].Location.X + newButton.Width + 5, 0);
            }
        }