Ejemplo n.º 1
0
        private async void SetAsCenter_Excuted(object sender, ExecutedRoutedEventArgs e)
        {
            var pos = Mouse.GetPosition(_seaMapInfo.MapFrame);
            await _locator.SetAsCenter(pos);

            //SetCursorPos((int)pos.X, (int)pos.Y);
        }
Ejemplo n.º 2
0
        public static Task SetAsCenter(this ILocator locator, Point point)
        {
            var mapPoint = locator.ScreenToMap(point.X, point.Y);

            return(locator.SetAsCenter(mapPoint));
        }