private void gmap_OnMarkerEnter(GMapMarker item) { if (item.Tag.GetType() == typeof(Photo.PhotoInfo)) { Photo.PhotoInfo photo = (Photo.PhotoInfo)item.Tag; pictureBoxSelected.ImageLocation = photo.Path; } }
private void gmap_OnMarkerClick(GMapMarker item, MouseEventArgs e) { // Photo.PhotoInfo photo if (item.Tag.GetType() == typeof(Photo.PhotoInfo)) { Photo.PhotoInfo photo = (Photo.PhotoInfo)item.Tag; //MessageBox.Show(this, photo.Path); } }