private void ZoomToPoint(IFeatureSet fs, int shapeIndex, double pad, MapControl mapControl) { double x, y; var g1 = fs.GetGeometry(shapeIndex); if (g1 == null) { return; } g1.GetPoint(0, out x, out y); var ext1 = new Envelope(x - pad, x + pad, y - pad, y + pad); mapControl.Extents = ext1; }