Exemple #1
0
 public void SetRectangle(Rectangle rectangle)
 {
     using (DesktopGraphics graphics = new DesktopGraphics())
     {
         _drag.Size(rectangle, graphics);
     }
 }
Exemple #2
0
        protected override void OnDrag(MouseEventArgs args)
        {
            base.OnDrag(args);

            Rectangle bounds = GetSizedRectangle();

            using (DesktopGraphics graphics = new DesktopGraphics())
            {
                _rectangleDrag.Size(bounds, graphics);
            }
        }