public void HandleMouseMove(MouseEvt me) { this.dragInfo.Get().Match( d => { Reposition r = new Reposition(d, me); Canvas.SetLeft(r.Polygon, r.Left); Canvas.SetTop(r.Polygon, r.Top); }, () => { }); }
public void HandleMouseUp(MouseEvt me) { this.dragInfo.Reset(); }
public EvtMove(MouseEvt me) : base(me) { }
public EvtUp(MouseEvt me) : base(me) { }
public void HandleMouseUp(MouseEvt me) { Task.Run(() => [email protected](new EvtUp(me), this.cts.Token)); }
protected EvtBase(MouseEvt me) { this.Me = me; }
public EvtUp(MouseEvt me) : base(me) { }
protected EvtBase(MouseEvt me) { this.Me = me; }
public EvtMove(MouseEvt me) : base(me) { }
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))); }
public void HandleMouseUp(MouseEvt me) => this.sMouseUp.Send(me);
public void HandleMouseMove(MouseEvt me) => this.sMouseMove.Send(me);
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))); }