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)); }
private void OnZoomLevelChanged(object sender, MapViewerEventArgs e) { cbZoom.SelectedIndex = (int)mapViewer.ZoomLevel; }
private void OnMapChanged(object sender, MapViewerEventArgs e) { tabControlMaps.SelectedIndex = e.Map.Index; }
private void OnZoomLevelChanged(object sender, MapViewerEventArgs e) { cbZoom.SelectedIndex = (int)mapViewer.ZoomLevel ; }