private void MyDrawObject_DrawComplete(object sender, ESRI.ArcGIS.Client.DrawEventArgs e)
 {
     if (jobid != null)
     {
         inputPoint = e.Geometry as MapPoint;
         _geoprocessorTask.CancelJobAsync(jobid);
     }
     else
     {
         inputPoint = null;
         SubmitJob(e.Geometry as MapPoint);
     }
 }
Exemple #2
0
 private void MyMap_MouseClick(object sender, ESRI.ArcGIS.Client.Map.MouseEventArgs e)
 {
     if (jobid != null)
     {
         inputPoint = e.MapPoint;
         _geoprocessorTask.CancelJobAsync(jobid);
     }
     else
     {
         inputPoint = null;
         SubmitJob(e.MapPoint);
     }
 }