void GeometryService_SimplifyCompleted(object sender, GraphicsEventArgs e) { geometryService.RelationAsync( pointLayer.Graphics, e.Results, GeometryRelation.esriGeometryRelationWithin, null); }
void relationAsync(string agsGeometryServerUrl, IList <Graphic> graphics1, IList <Graphic> graphics2, object userToken) { GeometryService geomService = new GeometryService { Url = agsGeometryServerUrl }; geomService.RelationCompleted += geometryService_RelationCompleted; geomService.Failed += (o, e) => { MessageBoxDialog.Show(Resources.Strings.MsgErrorExecutingRelationAsyncOperation + Environment.NewLine + e.Error.ToString()); if (findNearbyToolWindow != null) { findNearbyToolWindow.StopBusyIndicator(); MapApplication.Current.HideWindow(findNearbyToolWindow); } }; geomService.RelationAsync(graphics1, graphics2, GeometryRelation.esriGeometryRelationIntersection, null, userToken); }
void relationAsync(string agsGeometryServerUrl, IList<Graphic> graphics1, IList<Graphic> graphics2, object userToken) { GeometryService geomService = new GeometryService { Url = agsGeometryServerUrl }; geomService.RelationCompleted += geometryService_RelationCompleted; geomService.Failed += (o, e) => { MessageBoxDialog.Show(Resources.Strings.MsgErrorExecutingRelationAsyncOperation + Environment.NewLine + e.Error.ToString()); if (findNearbyToolWindow != null) { findNearbyToolWindow.StopBusyIndicator(); MapApplication.Current.HideWindow(findNearbyToolWindow); } }; geomService.RelationAsync(graphics1, graphics2, GeometryRelation.esriGeometryRelationIntersection, null, userToken); }