Пример #1
0
        public void HandlePointerPosition(PointerEventInfo info)
        {
            if (_currentTool != null)
            {
                _currentTool.PointerPosition(info, LayerContext.Geometry);
            }

            if (Info != null)
            {
                Info.ActionUpdateCoordinates(info.X + ", " + info.Y);
            }
        }
Пример #2
0
        public void HandlePointerPosition(PointerEventInfo info)
        {
            if (_currentTool != null)
            {
                _currentTool.PointerPosition(info, LayerContext.Geometry);
            }

            if (Info != null)
            {
                TileCoord coords = MouseToTileCoords(new Point((int)info.X, (int)info.Y));
                Info.ActionUpdateCoordinates(coords.X + ", " + coords.Y);
            }
        }