ArcGISWindowsPhoneSDK.ViewShed.MyMap_MapGesture C# (CSharp) Method

MyMap_MapGesture() private method

private MyMap_MapGesture ( object sender, Map e ) : void
sender object
e Map
return void
        private void MyMap_MapGesture(object sender, Map.MapGestureEventArgs e)
        {
            MapPoint mapPoint = e.MapPoint;
              if (_displayViewshedInfo && resultLayer != null && e.Gesture == GestureType.Tap)
              {

            ESRI.ArcGIS.Client.Tasks.IdentifyParameters identifyParams = new IdentifyParameters()
            {
              Geometry = mapPoint,
              MapExtent = MyMap.Extent,
              Width = (int)MyMap.ActualWidth,
              Height = (int)MyMap.ActualHeight,
              LayerOption = LayerOption.visible,
              SpatialReference = MyMap.SpatialReference
            };

            IdentifyTask identifyTask = new IdentifyTask(resultLayer.Url);
            identifyTask.ExecuteCompleted += (s, ie) =>
            {
              if (ie.IdentifyResults.Count > 0)
              {
            foreach (var identifyresult in ie.IdentifyResults)
            {
              if (identifyresult.LayerId == 1)
              {
                Graphic g = identifyresult.Feature;
                MyInfoWindow.Anchor = e.MapPoint;
                MyInfoWindow.Content = g.Attributes;
                MyInfoWindow.IsOpen = true;
                break;
              }
            }
              }
            };
            identifyTask.ExecuteAsync(identifyParams);
              }
        }