/// <summary>
 /// Simplifies geometry that has just been edited by the user
 /// </summary>
 public static void SimplifyGraphicAsync(Graphic graphic, EventHandler<GraphicsEventArgs> callback)
 {
     List<Graphic> list = new List<Graphic> {graphic};
     ESRI.ArcGIS.Client.Tasks.GeometryService geometryService = new ESRI.ArcGIS.Client.Tasks.GeometryService(Url);
     geometryService.SimplifyCompleted -= geometryService_SimplifyCompleted;
     geometryService.SimplifyCompleted += geometryService_SimplifyCompleted;
     geometryService.SimplifyAsync(list, callback);
 }
        /// <summary>
        /// Simplifies geometry that has just been edited by the user
        /// </summary>
        public static void SimplifyGraphicAsync(Graphic graphic, EventHandler <GraphicsEventArgs> callback)
        {
            List <Graphic> list = new List <Graphic> {
                graphic
            };

            ESRI.ArcGIS.Client.Tasks.GeometryService geometryService = new ESRI.ArcGIS.Client.Tasks.GeometryService(Url);
            geometryService.SimplifyCompleted -= geometryService_SimplifyCompleted;
            geometryService.SimplifyCompleted += geometryService_SimplifyCompleted;
            geometryService.SimplifyAsync(list, callback);
        }