Exemplo n.º 1
0
        /// <summary>
        /// Draw selection handles on the given placement
        /// </summary>
        /// <param name="e"></param>
        /// <param name="placement"></param>
        private void DrawSelectionBoxes(ItemPaintEventArgs e, VCItemPlacement placement)
        {
            if (!container.SelectedItems.Contains(placement))
            {
                return;
            }

            var g = e.Graphics;

            using (var pen = new Pen(Color.Red, 2.0f / e.ZoomFactor))
            {
                g.DrawRectangle(pen, new Rectangle(Point.Empty, placement.Item.Size));
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Default ctor
 /// </summary>
 /// <param name="placement"></param>
 internal VCItemPlacementEventArgs(VCItemPlacement placement)
 {
     this.placement = placement;
 }