${IS6_MeasureEventArgs_Title}

${IS6_MeasureEventArgs_Description}

Inheritance: SuperMap.Web.Service.ServiceEventArgs
 //获取距离量算结果
 private void measureDistance_ProcessCompleted(object sender, MeasureEventArgs e)
 {
     if (e.Result == null)
     {
         MessageBox.Show("null");
         return;
     }
     MessageBox.Show(e.Result.Distance.ToString() + "米");
 }
 //获取面积量算结果
 private void measureRegion_ProcessCompleted(object sender, MeasureEventArgs e)
 {
     MessageBox.Show(e.Result.Area.ToString() + "平方米");
 }
 private void request_Completed(object sender, RequestEventArgs e)
 {
     JsonObject jsonObject = (JsonObject)JsonObject.Parse(e.Result);
     MeasureResult result = MeasureResult.FromJson(jsonObject);
     LastResult = result;
     MeasureEventArgs args = new MeasureEventArgs(result, e.Result, e.UserState);
     OnProcessCompleted(args);
 }
 private void OnProcessCompleted(MeasureEventArgs args)
 {
     if (ProcessCompleted != null)
     {
         Application.Current.RootVisual.Dispatcher.BeginInvoke(ProcessCompleted, new object[] { this, args });
     }
 }