Ejemplo n.º 1
0
 private void OnMapChanged(object sender, MapViewerEventArgs e)
 {
     tabControlMaps.SelectedIndex = e.Map.Index;
 }
Ejemplo n.º 2
0
 private void OnZoomLevelChanged(object sender, MapViewerEventArgs e)
 {
    cbZoom.SelectedIndex = (int)mapViewer.ZoomLevel;
 }
Ejemplo n.º 3
0
        private void OnMapCoordinatesChanged(object sender, MapViewerEventArgs e)
        {
            int xDelta = mapViewer.CanvasSize.Width / 2;
            int yDelta = mapViewer.CanvasSize.Height / 2;

            _Labels = Atlas.GetLabels(Convert.ToInt16(e.Coordinates.X - xDelta), Convert.ToInt16(e.Coordinates.Y - yDelta), Convert.ToInt16(e.Coordinates.X + xDelta), Convert.ToInt16(e.Coordinates.Y + yDelta), Convert.ToByte(e.Map.Index));
        }