Esempio n. 1
0
        /// <summary>
        /// Draw selection
        /// </summary>
        public void Paint(VCItem sender, ItemPaintEventArgs e)
        {
            if (selecting)
            {
                var rect = SelectionBounds;
                if (!rect.IsEmpty)
                {
                    using (var pen = new Pen(Color.Black))
                    {
                        pen.DashStyle = DashStyle.Dot;
                        e.Graphics.DrawRectangle(pen, SelectionBounds.Round());
                    }
                }
            }

            // Draw selection boxes (if any)
            if (container.SelectedItems.Count > 0)
            {
                container.DrawItems(e, DrawSelectionBoxes);
            }
        }
 /// <summary>
 ///
 /// </summary>
 /// <param name="e"></param>
 public override void OnPostPaint(VCItem sender, ItemPaintEventArgs e)
 {
     container.DrawItems(e, DrawResizeHandles);
     base.OnPostPaint(sender, e);
 }