public bool OnMarkerClick(Marker marker) { try { PortableLibrary.Point selectedPoint = null; for (var i = 0; i < pointIDs.Count; i++) { if (marker.Id == pointIDs[i]) { selectedPoint = mEventMarker.markers[i]; } } if (selectedPoint == null) { return(false); } PointInfoDialog myDiag = PointInfoDialog.newInstance(selectedPoint); myDiag.Show(FragmentManager, "Diag"); } catch { return(true); } return(true); }
public static PointInfoDialog newInstance(Point point) { PointInfoDialog inputDialog = new PointInfoDialog(); inputDialog.point = point; return(inputDialog); }