Exemplo n.º 1
0
        protected override void OnMouseMove(MouseEventArgs e)
        {
            base.OnMouseMove(e);

            PointF ept = new PointF(e.X, e.Y);
            PointF wpt = WindowToWorld(ept);
            PointF bpt = WorldToWindow(wpt);
            FieldMouseMovedArgs args = new FieldMouseMovedArgs(wpt, ept, bpt);

            OnFieldMouseMoved(args);
        }
Exemplo n.º 2
0
        protected void OnFieldMouseMoved(FieldMouseMovedArgs args)
        {
            EventHandler <FieldMouseMovedArgs> handler = FieldMouseMoved;

            handler?.Invoke(this, args);
        }