Exemplo n.º 1
0
        private void AddTileControl(PreviewTileView tile)
        {
            PreviewTileControl control = new PreviewTileControl(tile, base.ClientRectangle, 5);

            control.SuspendLayout();
            base.Controls.Add(control);
            control.ResumeLayout(false);
        }
Exemplo n.º 2
0
        private Rectangle GetTileRectangle(PreviewTileControl control)
        {
            Rectangle rect = new Rectangle(control.Location, control.Size);

            return(Rectangle.Inflate(rect, PreviewTileView.InsetWidth, PreviewTileView.InsetWidth));
        }