Ejemplo n.º 1
0
 public Reposition(DragInfo dragInfo, MouseEvt me)
 {
     this.output = new Lazy<Tuple<Polygon, Point>>(() => Tuple.Create(dragInfo.Me.Element.Polygon, new Point(dragInfo.OriginalLeft + me.Pt.X - dragInfo.Me.Pt.X, dragInfo.OriginalTop + me.Pt.Y - dragInfo.Me.Pt.Y)));
 }
Ejemplo n.º 2
0
 public Reposition(DragInfo dragInfo, MouseEvt me)
 {
     this.output = new Lazy <Tuple <Polygon, Point> >(() => Tuple.Create(dragInfo.Me.Element.Polygon, new Point(dragInfo.OriginalLeft + me.Pt.X - dragInfo.Me.Pt.X, dragInfo.OriginalTop + me.Pt.Y - dragInfo.Me.Pt.Y)));
 }