Esempio n. 1
0
 protected override void MouseMove(object sender, System.Windows.Input.MouseEventArgs e)
 {
     if (dragging != null)
     {
         dragging.MoveTo(e.GetPosition(Parent));
         Drawing.Figures.Recalculate();
     }
 }
Esempio n. 2
0
        public static FreePoint CreateFreePoint(Drawing drawing, Point coordinates)
        {
            var result = new FreePoint()
            {
                Drawing = drawing
            };

            result.MoveTo(coordinates);
            return(result);
        }