ArcGISWindowsPhoneSDK.Intersect.MyDrawObject_DrawComplete C# (CSharp) Method

MyDrawObject_DrawComplete() private method

private MyDrawObject_DrawComplete ( object sender, DrawEventArgs args ) : void
sender object
args DrawEventArgs
return void
        private void MyDrawObject_DrawComplete(object sender, DrawEventArgs args)
        {
            MyDrawObject.IsEnabled = false;

            ESRI.ArcGIS.Client.Geometry.Polygon intersectPolygon = args.Geometry as ESRI.ArcGIS.Client.Geometry.Polygon;
            intersectPolygon.SpatialReference = MyMap.SpatialReference;

            List<Graphic> graphicList = new List<Graphic>();
            graphicList.Add(new Graphic() { Geometry = intersectPolygon });
            geometryService.SimplifyAsync(graphicList);
        }